Part Number Hot Search : 
HN25084 AM26L N6105 D5116A M7S44FD 2SK662Q 10016 MBRF2060
Product Description
Full Text Search
 

To Download 56F801307 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  56f8000 16-bit digital signal controllers freescale.com 56f8013/56f8011 data sheet preliminary technical data mc56f8013 rev. 10 01/2007
56f8013/56f8011 data sheet, rev. 10 2 freescale semiconductor preliminary document revision history version history description of change rev. 0 initial release. rev. 1 updates to part 10, specifications, table 10-1 , added maximum clamp current, per pin table 10-12 , clarified variation over temperature table and graph table 10-16 , added lin slave timing rev. 2 added alternate pins to figure 11-1 and table 11-1 . rev. 3 corrected adc offering on page 3, clarified section 1.4.1 , corrected bit se lects in timer channel 3 input (tc3_inp) bit 9, section 6.3.1.7 , and simplified notes in table 10-9 . rev. 4 added clarification on sync inputs in section 1.4.1 , added voltage differ ence specification to table 10-1 and table 10-4 , deleted formula for ambient operating temperature in table 10-4 , also a note for pin group 3 to table 10-1 , corrected table 8-1 , error in port c peripheral function configuration, removed text from notes in table 10-9 that referred to multiple flash blocks - this family has one flash block. added rohs and ?pb-free? language to back cover. rev. 5 updates to section 10 table 10-5 , corrected max values for adc input current high and low; corrected typ value for pull-up disabled digital input current low (a) table 10-6 , corrected typ and added max values for standby > stop and powerdown modes table 10-7 , corrected min value for low-voltage interrupt for 3.3v table 10-11 , corrected typ and max values and units for pll lock time table 10-12 , corrected typ values for relaxation o scillator output fr equency and variation over temperature (also increa sed temp range to 150 degreesc) and added variation over temperature from 0?105 degreesc updated figure 10-5 table 10-19 , updated max values for integral non-linearity full input signal range, negative differential non-linearity, adc in ternal clock, offset voltage internal ref, gain error and offset voltage external ref; updated typ values for negative differential non-linearity, offset voltage internal ref, gain error and offset voltage external ref; added new min values and corrected typ values for signal-to-noise ratio, total harmonic distortion, spurious free dynamic range, signal-to-noise plus di stortion, effective number of bits rev. 6 added details to section 1. clarified la nguage in state during reset column in table 2-3 ; corrected flash data retention temperature in table 10-4 ; moved input current high/low to table 10-19 and location of footnotes in table 10-5 ; reorganized table 10-19 ; clarified title of figure 10-1 . rev. 7 added information on automotive device for 56f8013. added information on 56f8011device; edited to indicate differences in 56f8013 and 56f8011 devices. updated values for v ei3.3 and v ei2.5 in table 10-7. deleted values for input and output voltage in table 10-8. added row for mc56f8013mfae in table 10-12.
56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 3 preliminary rev. 8 ? in table 10-4 , added an entry for flash data retentio n with less than 100 program/erase cycles (minimum 20 years). ?in table 10-6 , changed the device clock speed in stop mode from 8mhz to 4mhz. ?in table 10-12 , changed the typical relaxation oscillator output frequency in standby mode from 400khz to 200khz. rev. 9 in table 10-19 , changed the maximum adc internal clock frequency from 8mhz to 5.33mhz. rev. 10 added the following note to the description of the tms signal in table 2-3 : note: always tie the tms pin to v dd through a 2.2k resistor. document revision history (continued) version history description of change please see http://www.freesc ale.com for the most current data sheet revision.
56f8013/56f8011 data sheet, rev. 10 4 freescale semiconductor preliminary 56f8013/56f8011 block diagram program controller and hardware looping unit data alu 16 x 16 + 36 -> 36-bit mac three 16-bit input registers four 36-bit accumulators address generation unit bit manipulation unit 16-bit 56800e core interrupt controller 4 unified data / program ram 4kb 2kb pdb pdb xab1 xab2 xdb2 cdbr spi or i 2 c or timer or gpiob ipbus bridge (ipbb) system bus control r/w control memory pab pab cdbw cdbr cdbw jtag/eonce port or gpiod digital reg analog reg low-voltage supervisor v cap v dd v ss v dda v ssa 4 reset 7 timer or gpiob ad0 2 3 clock generator* system integration module p o r o s c pwm outputs pwm or timer port or gpioa *includes on-chip relaxation oscillator cop/ watchdog ad1 3 program memory 8k x 16 flash 6k x 16 flash adc or gpioc sci or i 2 c or gpiob 2 2 ? up to 32 mips at 32mhz core frequency ? dsp and mcu functionality in a unified, c-efficient architecture ? 56f8013 device offers 16kb program flash 56f8011 device offers 12kb program flash ? 56f8013 device offers 4kb unified data/program ram 56f8011 device offers 2kb unified data/program ram ? one 6-channel pwm module ? two 3-channel 12-bit adcs ? one serial communicatio n interface (sci) with lin slave functionality ? one serial periph eral interface (spi) ? one 16-bit quad timer ? one inter-integrated circuit (i 2 c) port ? computer operating properly (cop)/watchdog ? on-chip relaxation oscillator ? integrated power-on reset and low-voltag e interrupt module ? jtag/enhanced on-chip emulation (once?) for unobtrusive, real-time debugging ? up to 26 gpio lines ? 32-pin lqfp package 56f8013/56f8011 general description note: features in italics describe the 56f8011 device.
56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 5 preliminary part 1: overview . . . . . . . . . . . . . . . . . . . . . . 6 1.1. 56f8013/56f8011 features . . . . . . . . . . . . . . 6 1.2. 56f8013/56f8011 description . . . . . . . . . . . 8 1.3. award-winning development environment . 9 1.4. architecture block diagram . . . . . . . . . . . . . 9 1.5. product documentation . . . . . . . . . . . . . . . 13 1.6. data sheet conventions . . . . . . . . . . . . . . . 13 part 2: signal/connection descriptions . . 14 2.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2. 56f8013/56f8011 signal pins . . . . . . . . . . 18 part 3: occs . . . . . . . . . . . . . . . . . . . . . . . . 26 3.1. overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.3. operating modes . . . . . . . . . . . . . . . . . . . . . 26 3.4. block diagram . . . . . . . . . . . . . . . . . . . . . . . 28 3.5. pin descriptions . . . . . . . . . . . . . . . . . . . . . 29 part 4: memory map . . . . . . . . . . . . . . . . . . 29 4.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.2. interrupt vector table . . . . . . . . . . . . . . . . . 29 4.3. program map . . . . . . . . . . . . . . . . . . . . . . . 31 4.4. data map . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.5. eonce memory map . . . . . . . . . . . . . . . . . . 34 4.6. peripheral memory mapped registers . . . . 35 part 5: interrupt controller (itcn) . . . . . . . 44 5.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.3. functional description . . . . . . . . . . . . . . . . 44 5.4. block diagram . . . . . . . . . . . . . . . . . . . . . . . 46 5.5. operating modes . . . . . . . . . . . . . . . . . . . . . 46 5.6. register descriptions . . . . . . . . . . . . . . . . . . 47 5.7. resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 part 6: system integration module (sim). . 63 6.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 63 6.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 6.3. register descriptions . . . . . . . . . . . . . . . . . 65 6.4. clock generation overview . . . . . . . . . . . . 78 6.5. power-down modes . . . . . . . . . . . . . . . . . . 78 6.6. resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.7. clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 6.8. interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 83 part 7: security features . . . . . . . . . . . . . . . 83 7.1. operation with security enabled . . . . . . . . 84 7.2. flash access lock and unlock mechanisms . . . . . . . . . . . 84 part 8: general purpose input/output (gpio) . . . . . . . . . . . . . . . . . . . . . . . . .85 8.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 85 8.2. configuration . . . . . . . . . . . . . . . . . . . . . . . . 85 8.3. reset values . . . . . . . . . . . . . . . . . . . . . . . . 87 part 9: joint test action group (jtag) . . . 92 9.1. 56f8013/56f8011 information . . . . . . . . . . 92 part 10: specifications. . . . . . . . . . . . . . . . . 92 10.1. general characteristics . . . . . . . . . . . . . . . 92 10.2. dc electrical characteristics . . . . . . . . . . . 96 10.3. ac electrical characteristics . . . . . . . . . . . 98 10.4. flash memory characteristics . . . . . . . . . . 99 10.5. external clock operation timing . . . . . . . 100 10.6. phase locked loop timing . . . . . . . . . . . 100 10.7. relaxation oscillator timing. . . . . . . . . . . 101 10.8. reset, stop, wa it, mode select, and interrupt timing . . . . . . . . . . . . . . 102 10.9. serial peripheral interface (spi) timing . . . . . . . . . . . . . . . . 104 10.10. quad timer timing. . . . . . . . . . . . . . . . . 107 10.11. serial communication interface (sci) timing. . . . . . . . . . . . . . . . . 109 10.12. inter-integrated circuit interface (i2c) timing . . . . . . . . . . . . . . . . . 110 10.13. jtag timing. . . . . . . . . . . . . . . . . . . . . . 111 10.14. analog-to-digital converter (adc) parameters . . . . . . . . . . . 113 10.15. equivalent circuit for adc inputs . . . . . . 114 10.16. power consumption . . . . . . . . . . . . . . . . 114 part 11: packaging . . . . . . . . . . . . . . . . . . .117 11.1. 56f8013/56f8011 package and pin-out information . . . . . . . . . . . 117 part 12: design considerations . . . . . . . . .120 12.1. thermal design considerations . . . . . . . . 120 12.2. electrical design considerations . . . . . . . 122 part 13: ordering information . . . . . . . . . . 124 part 14: appendix. . . . . . . . . . . . . . . . . . . . 124 56f8013/56f8011 data sheet table of contents
56f8013/56f8011 data sheet, rev. 10 6 freescale semiconductor preliminary part 1 overview 1.1 56f8013/56f8011 features 1.1.1 digital signal controller core ? efficient 16-bit 56800e family digital signal cont roller (dsc) engine with dual harvard architecture ? as many as 32 million instructions pe r second (mips) at 32mhz core frequency ? single-cycle 16 16-bit parallel multiplier-accumulator (mac) ? four 36-bit accumulators, including extension bits ? 32-bit arithmetic and logic multi-bit shifter ? parallel instruction set with unique dsp addressing modes ? hardware do and rep loops ? three internal address buses ? four internal data buses ? instruction set supports both dsp and controller functions ? controller-style addressing modes and instructions for compact code ? efficient c compiler and local variable support ? software subroutine and interrupt stac k with depth limited only by memory ? jtag/enhanced on-chip emulation (once) for unobtrusive, processor speed-independent, real-time debugging 1.1.2 differences between devices table 1-1 outlines the key differences betw een the 56f8013 and 56f8011 devices. 1.1.3 memory ? dual harvard architecture permits as many as th ree simultaneous accesse s to program and data memory ? flash security and protection that prevent unauthor ized users from gaining access to the internal flash ? on-chip memory: ? 16kb of program flash (56f8013 device) 12kb of program flash (56f8011 device) ? 4kb of unified data/program ram (56f8013 device) 2kb of unified data/program ram (56f8011 device) ? eeprom emulation capability using flash table 1-1 device differences feature 56f8013 56f8011 program flash 16kb 12kb unified data/program ram 4kb 2kb
56f8013/56f8011 features 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 7 preliminary 1.1.4 peripheral circui ts for 56f8013/56f8011 ? one multi-function six-output puls e width modulator (pwm) module ? up to 96mhz pwm operating clock ? 15 bits of resolution ? center-aligned and edge-aligned pwm signal mode ? four programmable fault inputs wi th programmable digital filter ? double-buffered pwm registers ? taking into account values setting adc high- and low-limit registers, each complementary pwm signal pair allows selecti on of a pwm supply source from: ? pwm generator ? external gpio ? internal timers ? adc conversion result ? two independent 12-bit analog- to-digital converters (adcs) ? 2 x 3 channel inputs ? supports both simultaneous and sequential conversions ? adc conversions can be synchr onized by both pwm and timer modules ? sampling rate up to 2.67msps ? 8-word result buffer registers ? adc smart power management (auto-standby, auto-powerdown) ? one 16-bit multi-purpose quad timer module (tmr) ? up to 96mhz operating clock ? four independent 16-bit counter/t imers with cascading capability ? each timer has capture and compare capability ? up to 12 operating modes ? one serial communication interface (sci) with lin slave functionality ? full-duplex or single-wire operation ? two receiver wake-up methods: ? idle line ? address mark ? one serial peripheral interface (spi) ? full-duplex operation ? master and slave modes ? programmable length transactions (2 to 16 bits) ? one inter-integrated circuit (i 2 c) port ? operates up to 400kbps ? supports both master and slave operation ? computer operating properly (cop )/watchdog timer capable of sel ecting different clock sources ? up to 26 general-purpose i/o (g pio) pins with 5v tolerance ? integrated power-on reset a nd low-voltage interrupt module
56f8013/56f8011 data sheet, rev. 10 8 freescale semiconductor preliminary ? phase lock loop (pll) provides a high-sp eed clock to the core and peripherals ? clock sources: ? on-chip relaxation oscillator ? external clock source ? on-chip regulators for digital and analog circuitry to lower cost and reduce noise ? jtag/eonce debug programming in terface for real-time debugging 1.1.5 energy information ? fabricated in high-density cmos with 5v tolerance ? on-chip regulators for digital and analog circuitry to lower cost and reduce noise ? wait and stop modes available ? adc smart power management ? each peripheral can be indivi dually disabled to save power 1.2 56f8013/56f8011 description the 56f8013/56f8011 is a member of the 56800e core-bas ed family of digital si gnal controllers (dscs). it combines, on a single chip, the processing power of a dsp and the functionali ty of a microcontroller with a flexible set of peripherals to create an extr emely cost-effective solutio n. because of its low cost, configuration flexibility, and compact program code, the 56f8013/56f 8011 is well-suited for many applications. the 56f8013/56f 8011 includes many peripherals that ar e especially usef ul for industrial control, motion control, home applia nces, general purpose inverters, sm art sensors, fire and security systems, power manage ment, and medical moni toring applications. the 56800e core is based on a dual harvard-style architecture consisting of three execution units operating in parallel, allowing as many as six operations per inst ruction cycle. the mcu-style programming model and optimized instru ction set allow strai ghtforward generation of efficient, compact dsp and control code. the instruction set is also highly efficient for c compilers to enable rapid development of optimized control applications. the 56f8013/56f8011 supports program execution from internal memories. two data operands can be accessed from the on-chip data ra m per instruction cycle. the 56f8013/56f8011 also offers up to 26 general purpose input/output (gpio) line s, depending on peripheral configuration. the 56f8013 digital signal contro ller includes 16kb of program flash and 4kb of unified data/program ram. the 56f8011 digital signal controller includes 12kb of program flash and 2kb of unified data/program ram. program flash memory can be indepe ndently bulk erased or erased in pages. program flash page erase size is 512 bytes (256 words). a full set of programmable peri pherals?pwm, adcs, sci, spi, i 2 c, quad timer?supports various applications. each peripheral can be independently shut down to save power. any pin in these peripherals can also be used as genera l purpose input/outputs (gpios).
award-winning development environment 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 9 preliminary 1.3 award-winning development environment processor expert tm (pe) provides a rapid application design (rad) tool that combines easy-to-use component-based software application cr eation with an expert knowledge system. the codewarrior integrated devel opment environment is a sophisti cated tool for code navigation, compiling, and debugging. a complete set of evaluation modules (evms) , demonstration board kit and development system cards will s upport concurrent engin eering. together, pe, codewarrior and evms create a complete, scalable tools solution for easy, fast, and efficient development. 1.4 architecture block diagram the 56f8013/56f8011?s archit ecture is shown in figure 1-1 , figure 1-2 , and figure 1-3 . figure 1-1 illustrates how the 56800e system buses commu nicate with internal memories and the ipbus bridge. table 1-2 lists the internal buses in the 56800e architect ure and provides a brief description of their function. figure 1-2 and figure 1-3 show the peripherals and contro l blocks connected to the ipbus bridge. the figures do not show the on-board regulator and power a nd ground signals. they also do not show the multiplexing between peripherals or the dedi cated gpios. please see part 2, signal/connection descriptions , to see which signals are multiplexe d with those of other peripherals. 1.4.1 pwm, tmr and adc connections figure 1-3 shows the over/under voltage c onnections from the ad c to the pwm and the connections to the pwm from the tmr and gpio. th ese signals can control the pwm out puts in a similar manner to the over/under voltage cont rol signals. see the 56f801x peripheral reference manual for additional information. the pwm_reload_sync output can be connected to th e tmr channel 3 input and the tmr channels 2 and 3 outputs are connected to the adc sync inputs. tm r channel 3 output is connected to sync0 and tmr channel 2 is connected to sync1. s ync0 is the master adc sync input that is used to trigger adca and adcb in sequence and parallel mode . sync1 is used to trigger abcb in parallel i ndependent mode. these are controlled by bits in the sim control register; see section 6.3.1 .
56f8013/56f8011 data sheet, rev. 10 10 freescale semiconductor preliminary figure 1-1 56800e core block diagram data dsp56800e core arithmetic logic unit (alu) xab2 pab pdb cdbw cdbr xdb2 program memory data / ipbus interface bit- manipulation unit n3 m01 address xab1 generation unit (agu) pc la la2 hws0 hws1 fira omr sr fisr lc lc2 instruction decoder interrupt unit looping unit program control unit alu1 alu2 mac and alu a1 a2 a0 b1 b2 b0 c1 c2 c0 d1 d2 d0 y1 y0 x0 enhanced jtag tap r2 r3 r4 r5 sp r0 r1 n y multi-bit shifter once? program ram
architecture block diagram 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 11 preliminary figure 1-2 peripheral subsystem ipbus gpio a interrupt controller to/from ipbus bridge gpio b gpio c clkgen (rosc / pll / clkin) por & lvi sim gpio d low-voltage interrupt system por cop reset reset / gpioa7 cop gpioa n gpiob n gpioc n gpiod n (continues on figure 1-3 ) 8 8 6 4
56f8013/56f8011 data sheet, rev. 10 12 freescale semiconductor preliminary figure 1-3 56f8013/56f8011 pe ripheral i/o pin-out to/from ipbus bridge 3 to pwm sync0, sync1 over/under limits adc ana0, 1, 3 ana2 v refh , v refl anb2 anb0, 1, 3 ipbus 3 2 v refh , v refl ana2 anb2 ana0, 1, 3 3 spi i 2 c sci 2 t2o, t3o t3i t2/3 t1 t0 timer pwm pwm0 - 3 fault3 fault0 fault1, 2 pwm4, 5 pwm4, 5 pwm0 - 3 fault1, 2 fault0 fault3 t2, 3 2 3 from adc i 2 c is muxed with both spi and sci. t2 and t3 are muxed with spi and pwm. t1 t0 clko txd, rxd 2 2 2 2 t2, 3 anb0, 1, 3 gpioa0 - 3 gpioa4 - 5 gpioa6 gpiob5 gpiob4 gpiob6 - 7 gpiob0 - 1 gpiob2 - 3 gpioc0, 1, 3 gpioc2, 6 gpioc4, 5, 7 sda, scl sclk, ss miso, mosi 4 2 2 output controls 2 2 2 (continued from figure 1-2 ) reload pulse
product documentation 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 13 preliminary 1.5 product documentation the documents listed in table 1-2 are required for a complete description and proper design with the 56f8013 or 56f8011. documentation is available from local fr eescale distributors, freesca le semiconductor sales offices, freescale literature dist ribution centers, or online at: http://www.freescale.com 1.6 data sheet conventions this data sheet uses the following conventions: table 1-2 56f8013/56f8011 chip documentation topic description order number dsp56800e reference manual detailed description of the 56800e family architecture, 16-bit digital signal controller core processor, and the instruction set dsp56800erm 56f801x peripheral reference manual detailed description of peripherals of the 56f801x family of devices mc56f8000rm 56f801x serial bootloader user guide detailed description of the serial bootloader in the 56f801x family of devices 56f801xblug 56f8013/56f8011 technical data sheet electrical and timing specifications, pin descriptions, and package descriptions (this document) mc56f8013 errata details any chip issues that might be present mc56f8013e mc56f8011e overbar this is used to indicate a signal that is active when pulled low. for example, the reset pin is active when low. ?asserted? a high true (active high) signal is hi gh or a low true (active low) signal is low. ?deasserted? a high true (active high) signal is low or a low true (active low) signal is high. examples: signal/symbol logic state signal state voltage 1 1. values for v il , v ol , v ih , and v oh are defined by individual product specifications. pin true asserted v il /v ol pin false deasserted v ih /v oh pin true asserted v ih /v oh pin false deasserted v il /v ol
56f8013/56f8011 data sheet, rev. 10 14 freescale semiconductor preliminary part 2 signal/connection descriptions 2.1 introduction the input and output signals of th e 56f8013/56f8011 are organized into f unctional groups, as detailed in table 2-1 . table 2-2 summarizes all device pins. in table 2-2 , each table row describes the signal or signals present on a pin, sorted by pin number. table 2-1 functional gr oup pin allocations functional group number of pins power (v dd or v dda )2 ground (v ss or v ssa )3 supply capacitors 1 reset 1 pulse width modulator (pwm) ports 1 1. pins in this section can function as tmr and gpio. 7 serial peripheral interface (spi) ports 2 2. pins in this section can function as tmr, i 2 c, and gpio. 4 analog-to-digital converter (adc) ports 6 timer module ports 3 3. pins can function as pwm and gpio. 2 serial communications interface (sci) ports 4 4. pins in this section can function as i 2 c and gpio. 2 jtag/enhanced on-chip emulation (eonce) 4
introduction 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 15 preliminary table 2-2 56f8013/56f8011 pins peripherals: lqfp pin # pin name signal name gpio i2c sci spi adc pwm quad timer power & ground jtag misc. 1 gpiob6 gpiob6, rxd, sda, clkin b6 sda rxd clkin 2 gpiob1 gpiob1, s s , sda b1 sda ss 3 gpiob7 gpiob7, txd, scl b7 scl txd 4 gpiob5 gpiob5, t1, fault3 b5 fault3 t1 5 anb0 anb0, gpioc4 c4 anb0 6 anb1 anb1, gpioc5 c5 anb1 7 anb2 anb2, v refl , gpioc6 c6 anb2, v refl 8 vdda v dda v dda 9 vssa v ssa v ssa 10 ana2 ana2, v refh , gpioc2 c2 ana2, v refh 11 ana1 ana1, gpioc1 c1 ana1 12 ana0 ana0, gpioc0 c0 ana0 13 vss_io v ss v ss 14 tck tck, gpiod2 d2 tck 15 reset reset , gpioa7 a7 reset 16 gpiob3 gpiob3, mosi, t3 b3 mosi t3 17 gpiob2 gpiob2, miso, t2 b2 miso t2 18 gpioa6 gpioa6, fault0 a6 fault0 19 gpiob4 gpiob4, t0, clko b4 t0 clko 20 gpioa5 gpioa5, pwm5, fault2, t3 a5 pwm5, fault2 t3 21 gpiob0 gpiob0, sclk, scl b0 scl sclk 22 gpioa4 gpioa4, pwm4, fault1, t2 a4 pwm4, fault1 t2 23 gpioa2 gpioa2, pwm2 a2 pwm2 24 gpioa3 gpioa3, pwm3 a3 pwm3
56f8013/56f8011 data sheet, rev. 10 16 freescale semiconductor preliminary 25 vcap v cap v cap 26 vdd v dd v dd 27 vss_io v ss v ss 28 gpioa1 gpioa1, pwm1 a1 pwm1 29 gpioa0 gpioa0, pwm0 a0 pwm0 30 tdi tdi, gpiod0 d0 tdi 31 tms tms, gpiod3 d3 tms 32 tdo tdo, gpiod1 d1 tdo table 2-2 56f8013/56f8011 pins (continued) peripherals: lqfp pin # pin name signal name gpio i2c sci spi adc pwm quad timer power & ground jtag misc.
introduction 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 17 preliminary figure 2-1 56f8013/56f8011 signals identified by functional group v dd v dda v ssa gpiob6 (rxd, sda, clkin) gpiob7 (txd, scl) other supply ports sci port or i 2 c port or gpio jtag/ eonce port or gpio 1 1 2 v cap 1 1 1 tck (gpiod2) tms (gpiod3) gpioa4 (pwm4, fault1, t2) ana0 - 1 (gpioc0 - 1) 1 1 1 2 1 56f8013 / 56f8011 1 tdi (gpiod0) tdo (gpiod1) gpiob0 (sclk, scl) gpiob1 (ss , sda) gpiob2 (miso, t2) gpiob3 (mosi, t3) anb0 - 1 (gpioc4 - 5) anb2 (v refl , gpioc6) 1 1 1 1 1 1 1 2 ana2 (v refh , gpioc2) 1 v ss power ground power ground gpioa3 (pwm3) 1 gpioa0 - 2 (pwm0 - 2) 3 gpioa5 (pwm5, fault2, t3) 1 gpioa6 (fault0) 1 reset reset (gpioa7) 1 gpiob4 (t0, clko) gpiob5 (t1, fault3) timer port or gpio 1 1 adc port or gpio spi port or i 2 c port or timer port or gpio pwm port or timer port or gpio
56f8013/56f8011 data sheet, rev. 10 18 freescale semiconductor preliminary 2.2 56f8013/56f8011 signal pins after reset, each pin is configured for its primary function (listed first). any alternate functionality must be programmed. table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description v dd 26 supply supply i/o power ? this pin supplies 3.3v power to the chip i/o interface. v ss 13 supply supply v ss ? these pins provide ground fo r chip logic and i/o drivers. v ss 27 v dda 8 supply supply adc power ? this pin supplies 3.3v power to the adc modules. it must be connected to a clean analog power supply. v ssa 9 supply supply adc analog ground ? this pin supplies an analog ground to the adc modules. v cap 25 supply supply v cap ? connect this pin to a 4.4 f or greater bypass capacitor in order to bypass the core voltage regulator, required for proper chip operation. see section 10.2.1 . gpiob6 (rxd) (sda 1 ) (clkin) 1 input/ output input input/ output input output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. receive data ? sci receive data input. serial data ? this pin serves as the i 2 c serial data line. clock input ? this pin serves as an optional external clock input. after reset, the default state is gp iob6. the peripheral functionality is controlled via the sim (see section 6.3.8 ) and the clkmode bit of the occs oscillator control register. 1. this signal is also brought out on the gpiob1 pin. return to table 2-2
56f8013/56f8011 signal pins 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 19 preliminary gpiob7 (txd) (scl 2 ) 3 input/ output input/ output input/ output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. transmit data ? sci transmit data output or transmit / receive in single wire operation. serial clock ? this pin serves as the i 2 c serial clock. after reset, the default state is gp iob7. the peripheral functionality is controlled via the sim. see section 6.3.8 . 2. this signal is also brought out on the gpiob0 pin. reset (gpioa7) 15 input input/open drain output output disabled, internal pull-up enabled, pin is in input mode reset ? this input is a direct hardware reset on the processor. when reset is asserted low, the chip is initialized and placed in the reset state. a schmitt trigger input is used for noise immunity. the internal reset signal will be deasserted synchronous with the internal clocks after a fixed numbe r of internal clocks. port a gpio ? this gpio pin can be individually programmed as an input or open dr ain output pin. note that reset functionality is disabled in this mode and the chip can only be reset via por, cop reset, or software reset. after reset, the default state is reset . gpiob4 (t0) (clko) 19 input/ output input/ output output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. t0 ? timer, channel 0 clock output ? this is a buffered clock signal. using the sim_clko select register (sim_clkosr), this pin can be programmed as any of the following: disabled (logic 0), clk_mstr (system clock), ipbus clock, or oscillator output. see section 6.3.7 . after reset, the default state is gp iob4. the peripheral functionality is controlled via the sim. see section 6.3.8 . return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 data sheet, rev. 10 20 freescale semiconductor preliminary gpiob5 (t1) (fault3) 4 input/ output input/ output output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. t1 ? timer, channel 1 fault3 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. after reset, the default state is gp iob5. the peripheral functionality is controlled via the sim. see section 6.3.8 . tck (gpiod2) 14 input input/ output output disabled, internal pull-up enabled, pin is in input mode test clock input ? this input pin provides a gated clock to synchronize the test logic and shift serial data to the jtag/eonce port. the pin is connected internally to a pull-up resistor. a schmitt trigger input is used for noise immunity. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tck. tms (gpiod3) 31 input input/ output output disabled, internal pull-up enabled, pin is in input mode test mode select input ? this input pin is used to sequence the jtag tap controller?s state machine. it is sampled on the rising edge of tck and has an on-chip pull-up resistor. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tms. note: always tie the tms pin to v dd through a 2.2k resistor. tdi (gpiod0) 30 input input/ output output disabled, internal pull-up enabled, pin is in input mode test data input ? this input pin provides a serial input data stream to the jtag/eonce port. it is sampled on the rising edge of tck and has an on-chip pull-up resistor. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tdi. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 signal pins 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 21 preliminary tdo (gpiod1) 32 output input/ output output disabled, internal pull-up enabled test data output ? this tri-stateable output pin provides a serial output data stream from the jtag/eonce port. it is driven in the shift-ir and shift-dr controller states, and changes on the falling edge of tck. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tdo. gpiob0 (sclk) (scl 3 ) 21 input/ output input/ output input/ output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi serial clock ? in the master mode, this pin serves as an output, clocking slaved listeners. in slave mode, this pin serves as the data clock input. a schmitt trigger input is used for noise immunity. serial data ? this pin serves as the i 2 c serial clock. after reset, the default state is gp iob0. the peripheral functionality is controlled via the sim. see section 6.3.8 . 3. this signal is also brought out on the gpiob7 pin. gpiob1 (ss ) (sda 4 ) 2 input/ output input input/ output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi slave select ? ss is used in slave mode to indicate to the spi module that the current transfer is to be received. serial clock ? this pin serves as the i 2 c serial data line. after reset, the default state is gp iob1. the peripheral functionality is controlled via the sim. see section 6.3.8 . 4. this signal is also brought out on the gpiob6 pin. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 data sheet, rev. 10 22 freescale semiconductor preliminary gpiob2 (miso) (t2 5 ) 17 input/ output input/ output input/ output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi master in/slave out ? this serial data pin is an input to a master device and an output from a slave device. the miso line of a slave device is placed in the high-im pedance state if the slave device is not selected. the slave device places data on the miso line a half-cycle before the cloc k edge the master device uses to latch the data. t2 ? timer, channel 2 after reset, the default state is gp iob2. the peripheral functionality is controlled via the sim. see section 6.3.8 . 5. this signal is also brought out on the gpioa4 pin. gpiob3 (mosi) (t3 6 ) 16 input/ output input/ output input/ output output disabled, internal pull-up enabled, pin is in input mode port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi master out/slave in ? this serial data pin is an output from a master device and an input to a slave device. the master device places data on the mosi line a half-cycle before t he clock edge the slave device uses to latch the data. t3 ? timer, channel 3 after reset, the default state is gp iob3. the peripheral functionality is controlled via the sim. see section 6.3.8 . 6. this signal is also brought out on the gpioa5 pin. gpioa0 (pwm0) 29 input/ output output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm0 ? this is one of the six pwm output pins. after reset, the default state is gpioa0. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 signal pins 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 23 preliminary gpioa1 (pwm1) 28 input/ output output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm1 ? this is one of the six pwm output pins. after reset, the default state is gpioa1. gpioa2 (pwm2) 23 input/ output output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm2 ? this is one of the six pwm output pins. after reset, the default state is gpioa2. gpioa3 (pwm3) 24 input/ output output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm3 ? this is one of the six pwm output pins. after reset, the default state is gpioa3. gpioa4 (pwm4) (fault1) (t2 7 ) 22 input/ output output input input/ output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm4 ? this is one of the six pwm output pins. fault1 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. t2 ? timer, channel 2 after reset, the default state is gp ioa4. the peripheral functionality is controlled via the sim. see section 6.3.8 . 7. this signal is also brought out on the gpiob2 pin. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 data sheet, rev. 10 24 freescale semiconductor preliminary gpioa5 (pwm5) (fault2) (t3 8 ) 20 input/ output output input/ output input/ output output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm5 ? this is one of the six pwm output pins. fault2 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. t3 ? timer, channel 3 after reset, the default state is gp ioa5. the peripheral functionality is controlled via the sim. see section 6.3.8 . 8. this signal is also brought out on the gpiob3 pin. gpioa6 (fault0) 18 input/ output input output disabled, internal pull-up enabled, pin is in input mode port a gpio ? this gpio pin can be individually programmed as an input or output pin. fault0 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. after reset, the default state is gpioa6. ana0 (gpioc0) 12 input input/ output analog input ana0 ? analog input to adc a, channel 0 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana0. ana1 (gpioc1) 11 input input/ output analog input ana1 ? analog input to adc a, channel 1 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana1. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 signal pins 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 25 preliminary ana2 (v refh ) (gpioc2) 10 input input input/ output analog input ana2 ? analog input to adc a, channel 2 v refh ? analog reference voltage high port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana2. anb0 (gpioc4) 5 input input/ output analog input anb0 ? analog input to adc b, channel 0 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb0. anb1 (gpioc5) 6 input input/ output analog input anb1 ? analog input to adc b, channel 1 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb1. anb2 (v refl ) (gpioc6) 7 input input input/ output analog input anb2 ? analog input to adc b, channel 2 v refl ? analog reference voltage low. this should normally be connected to a low-noise v ss . port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb2. return to table 2-2 table 2-3 56f8013/56f8011 signal and pa ckage information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description
56f8013/56f8011 data sheet, rev. 10 26 freescale semiconductor preliminary part 3 occs 3.1 overview this module provides the 2x system clock frequency to the system in tegration module (sim), which uses it to generate the vari ous chip clocks. this m odule also produces the osc_ clk signals plus the adc clock and high-speed peripheral clock. the on-chip clock synthesis module al lows product design using an intern al relaxation oscillator to run 56f801x family parts at user-sel ectable frequencies up to 32mhz. 3.2 features the on-chip clock synthesis (occs) module interfaces to the oscill ator and pll. the occs module features: ? internal relaxation oscillator ? ability to power down the in ternal relaxation oscillator ? ability to put the internal relaxa tion oscillator into a standby mode ? 3-bit postscaler provides control for the pll output ? ability to power down the internal pll ? provides 2x master clock frequency and osc_clk signals ? provides 3x fast peripheral clock to pwm and timer ? safety shutdown feature is available in th e event that the pll reference clock disappears ? can be driven from an external clock source the clock generation module provides the programming in terface for both the pll and internal relaxation oscillator. 3.3 operating modes in 56f801x family parts, ei ther an internal oscillator or an ex ternal frequency sour ce can be used to provide a reference clock (sys_clk2) to the sim. the 2x system clock source output from the occs ca n be described by one of the following equations: 2x system frequency = oscillator frequency 2x system frequency = (oscillato r frequency x 8) / (postscaler) where: postscaler = 1, 2, 4, 8, 16, or 32 pll output divider the sim is responsible for further dividing these frequencies by two, wh ich will insure a 50% duty cycle in the system clock output.
operating modes 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 27 preliminary the 56f801x family parts? on-chip clock s ynthesis module has the following registers: ? control register (occs_cr) ? divide-by register (occs_db) ? status register (occs_sr) ? shutdown register (occs_shutdn) ? oscillator control register (occs_octrl) for more information on these registers, please refer to the 56f801x peripheral reference manual. 3.3.1 external clock source the recommended method of connecting an external cl ock is illustrated in figure 3-1 . the external clock source is connected to gpiob6 / rxd. figure 3-1 connecting an external clock signal using gpiob6 / rxd 56f8013/56f8011 gpiob6 / rxd external clock
56f8013/56f8011 data sheet, rev. 10 28 freescale semiconductor preliminary 3.4 block diagram figure 3-2 provides a block diagram which shows how the 56f8013/56f8011 creates its internal clock, using the relaxation oscillator as an 8mhz clock reference for the pll. figure 3-2 occs block diagra m with relaxat ion oscillator trim[9:0] rosb ropd relaxation osc bus interface and control bus interface gpiob6 / rxd precs mux mux mux mstr_osc sys_clk_x2 source to the sim (64mhz max) zsrc hs perf clk (96mhz max) postscaler ( 1, 2, 4, 8, 16, 32) postscaler ( 1, 2, 4, 8, 16, 32) 3 2 pll x 24 lock detector loss of reference clock detector loss of reference clock interrupt lck f out /2 feedback pllcod fout
pin descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 29 preliminary 3.5 pin descriptions 3.5.1 external reference (gpiob6 / rxd) the relaxation oscillator is included on chip and the reset mode is to use this as the clock source for the chip. the user then has the option of switchin g to an external clock reference if desired. part 4 memory map 4.1 introduction the 56f8013/56f8011 device is a 16-bi t motor-control chip based on the 56800e core. it uses a harvard-style architecture with two independent me mory spaces for data a nd program. on-chip ram is used in both spaces and flash memo ry is used only in program space. this section provides memory maps for: ? program address space, including the interrupt vector table ? data address space, including the eonce memory and peripheral memory maps on-chip memory sizes for the device are summarized in table 4-1 . flash memories? restrictions are identified in the ?use restrictions? column of table 4-1 . 4.2 interrupt vector table table 4-2 provides the 56f8013/56f8011?s reset and interr upt priority struct ure, including on-chip peripherals. the table is organized with higher-priority vectors at th e top and lower-priority interrupts lower in the table. as indicated, the priority of an interrupt can be assigned to different levels, allowing some control over interrupt priorities. all level 3 in terrupts will be serviced be fore level 2, and so on. for a selected priority level, the lowest vector number has the highest priority. the location of the vector table is determined by the vector ba se address (vba). please see section 5.6.11 for the reset value of the vba. by default, vba = 0, and the reset address and cop reset ad dress will correspond to vector 0 and 1 of the interrupt vector table. in these instances, the first tw o locations in the vector ta ble must contain branch or jmp instructions. all other entries must contain jsr instructions. table 4-1 chip memo ry configurations on-chip memory 56f8013 56f8011 use restrictions program flash (pflash) 8k x 16 6k x 16 erase / program via flash interface unit and word writes to cdbw unified ram (ram) 2k x 16 1k x 16 usable by both the program and data memory spaces
56f8013/56f8011 data sheet, rev. 10 30 freescale semiconductor preliminary table 4-2 interrupt v ector table contents 1 peripheral vector number priority level vector base address + interrupt function core p:$00 reserved for reset overlay 2 core p:$02 reserved for cop reset overlay core 2 3 p:$04 illegal instruction core 3 3 p:$06 sw interrupt 3 core 4 3 p:$08 hw stack overflow core 5 3 p:$0a misaligned long word access core 6 1-3 p:$0c eonce step counter core 7 1-3 p:$0e eonce breakpoint unit 0 core 8 1-3 p:$10 eonce trace buffer core 9 1-3 p:$12 eonce transmit register empty core 10 1-3 p:$14 eonce receive register full core 11 2 p:$16 sw interrupt 2 core 12 1 p:$18 sw interrupt 1 core 13 0 p:$1a sw interrupt 0 14 reserved 15 reserved ps 16 0-2 p:$20 power sense occs 17 0-2 p:$22 pll lock, loss of clock reference interrupt fm 18 0-2 p:$24 fm access error interrupt fm 19 0-2 p:$26 fm command complete fm 20 0-2 p:$28 fm command, data and address buffers empty 21 reserved gpiod 22 0-2 p:$2c gpiod gpioc 23 0-2 p:$2e gpioc gpiob 24 0-2 p:$30 gpiob gpioa 25 0-2 p:$32 gpioa spi 26 0-2 p:$34 spi receiver full / error spi 27 0-2 p:$36 spi transmitter empty sci 28 0-2 p:$38 sci transmitter empty sci 29 0-2 p:$3a sci transmitter idle sci 30 0-2 p:$3c sci reserved sci 31 0-2 p:$3e sci receiver error sci 32 0-2 p:$40 sci receiver full 33, 34 reserved i 2 c 35 0-2 p:$46 i 2 c timer 36 0-2 p:$48 timer channel 0 timer 37 0-2 p:$4a timer channel 1 (continues next page)
program map 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 31 preliminary 4.3 program map the program memory map is shown in table 4-3 . timer 38 0-2 p:$4c timer channel 2 timer 39 0-2 p:$4e timer channel 3 adc 40 0-2 p:$50 adca conversion complete adc 41 0-2 p:$52 adcb conversion complete adc 42 0-2 p:$54 adc zero crossing or limit error pwm 43 0-2 p:$56 reload pwm pwm 44 0-2 p:$58 pwm fault swilp 45 -1 p:$5a sw interrupt low priority 1. two words are allocated for each entry in the vector table. this does not allow the full address range to be referenced from the vector table, providing only 19 bits of address. 2. if the vba is set to $0000, the first two locations of the vector table will overlay the chip reset addresses. table 4-3 program memory map for 56f8013 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation p: $ff ffff p: $00 8800 reserved p: $00 87ff p: $00 8000 on-chip ram 2 4kb 2. this ram is shared with data space starting at address x: $00 0000; see figure 4-1 . p: $00 7fff p: $00 2000 reserved p: $00 1fff p: $00 0000 internal program flash 16kb cop reset address = $00 0002 boot location = $00 0000 table 4-2 interrupt vector table contents 1 (continued) peripheral vector number priority level vector base address + interrupt function
56f8013/56f8011 data sheet, rev. 10 32 freescale semiconductor preliminary 4.4 data map table 4-4 program memory map for 56f8011 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation p: $1f ffff p: $00 8400 reserved p: $00 83ff p: $00 8000 on-chip ram 2 2kb 2. this ram is shared with data space starting at address x: $00 0000; see figure 4-1 . p: $00 7fff p: $00 2000 reserved p: $00 1fff p: $00 0800 internal program flash 12kb cop reset address = $00 0802 boot location = $00 0800 p: $00 07ff p: $00 0000 reserved table 4-5 data memory map for 56f8013 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation x:$ff ffff x:$ff ff00 eonce 256 locations allocated x:$ff feff x:$01 0000 reserved x:$00 ffff x:$00 f000 on-chip peripherals 4096 locations allocated x:$00 efff x:$00 8800 reserved x:$00 efff x:$00 0800 reserved x:$00 7fff x:$00 0040 reserved x:$00 07ff x:$00 0000 on-chip data ram 2 4kb 2. this ram is shared with program space starting at p: $00 8000; see figure 4-1 .
data map 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 33 preliminary figure 4-1 dual port ram table 4-6 data memory map for 56f8011 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation x:$ff ffff x:$ff ff00 eonce 256 locations allocated x:$ff feff x:$01 0000 reserved x:$00 ffff x:$00 f000 on-chip peripherals 4096 locations allocated x:$00 efff x:$00 0400 reserved x:$00 03ff x:$00 0000 on-chip data ram 2 2kb 2. this ram is shared with program space starting at p: $00 8000; see figure 4-1 . reserved ram reserved flash reserved eonce peripherals reserved ram dual port ram program data
56f8013/56f8011 data sheet, rev. 10 34 freescale semiconductor preliminary 4.5 eonce memory map figure 4-7 lists all eonce registers necessary to access or control the eonce. table 4-7 eonce memory map address register acronym register name x:$ff ffff otx1 / orx1 transmit register upper word receive register upper word x:$ff fffe otx / orx (32 bits) transmit register receive register x:$ff fffd otxrxsr transmit and receive status and control register x:$ff fffc oclsr core lock / unlock status register x:$ff fffb - x:$ff ffa1 reserved x:$ff ffa0 ocr control register x:$ff ff9f instruction step counter x:$ff ff9e oscntr (24 bits) instruction step counter x:$ff ff9d osr status register x:$ff ff9c obase peripheral base address register x:$ff ff9b otbcr trace buffer control register x:$ff ff9a otbpr trace bu ffer pointer register x:$ff ff99 trace buffer register stages x:$ff ff98 otb (21 - 24 bits/stage) trace buffer register stages x:$ff ff97 breakpoint unit control register x:$ff ff96 obcr (24 bits) breakpoint unit control register x:$ff ff95 breakpoint unit address register 1 x:$ff ff94 obar1 (24 bits) breakpoint unit address register 1 x:$ff ff93 breakpoint unit address register 2 x:$ff ff92 obar2 (32 bits) breakpoint unit address register 2 x:$ff ff91 breakpoint unit mask register 2 x:$ff ff90 obmsk (32 bits) breakpoint unit mask register 2 x:$ff ff8f reserved x:$ff ff8e obcntr eonce breakpoint unit counter x:$ff ff8d reserved x:$ff ff8c reserved x:$ff ff8b reserved x:$ff ff8a oescr external signal control register x:$ff ff89 - x:$ff ff00 reserved
peripheral memory mapped registers 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 35 preliminary 4.6 peripheral memory mapped registers on-chip peripheral registers are pa rt of the data memory map on th e 56800e series. these locations may be accessed with the same addressing modes used for ordinary data memory, except all peripheral registers should be read/writt en using word accesses only. table 4-8 summarizes base addresses for the set of peripherals on the 56f8013/56f8011 device. peripherals are listed in order of the base address. the following tables list all of the peripheral registers requi red to control or access the peripherals. table 4-8 data memory periph eral base address map summary peripheral prefix base address table number timer tmr n x:$00 f000 4-9 pwm pwm x:$00 f040 4-10 itcn itcn x:$00 f060 4-11 adc adc x:$00 f080 4-12 sci sci x:$00 f0b0 4-13 spi spi x:$00 f0c0 4-14 i 2 c i2c x:$00 f0d0 4-15 cop cop x:$00 f0e0 4-16 clk, pll, osc, test occs x:$00 f0f0 4-17 gpio port a gpioa x:$00 f100 4-18 gpio port b gpiob x:$00 f110 4-19 gpio port c gpioc x:$00 f120 4-20 gpio port d gpiod x:$00 f130 4-21 sim sim x:$00 f140 4-22 power supervisor ps x:$00 f160 4-23 fm fm x:$00 f400 4-24 table 4-9 quad timer registers address map (tmr_base = $00 f000) register acronym address offset register description tmr0_comp1 $0 compare register 1 tmr0_comp2 $1 compare register 2 tmr0_capt $2 capture register tmr0_load $3 load register tmr0_hold $4 hold register tmr0_cntr $5 counter register tmr0_ctrl $6 control register tmr0_sctrl $7 status and control register tmr0_cmpld1 $8 comparator load register 1
56f8013/56f8011 data sheet, rev. 10 36 freescale semiconductor preliminary tmr0_cmpld2 $9 comparator load register 2 tmr0_csctrl $a comparator status and control register reserved tmr1_comp1 $10 compare register 1 tmr1_comp2 $11 compare register 2 tmr1_capt $12 capture register tmr1_load $13 load register tmr1_hold $14 hold register tmr1_cntr $15 counter register tmr1_ctrl $16 control register tmr1_sctrl $17 status and control register tmr1_cmpld1 $18 comparator load register 1 tmr1_cmpld2 $19 comparator load register 2 tmr1_csctrl $1a comparator status and control register reserved tmr2_comp1 $20 compare register 1 tmr2_comp2 $21 compare register 2 tmr2_capt $22 capture register tmr2_load $23 load register tmr2_hold $24 hold register tmr2_cntr $25 counter register tmr2_ctrl $26 control register tmr2_sctrl $27 status and control register tmr2_cmpld1 $28 comparator load register 1 tmr2_cmpld2 $29 comparator load register 2 tmr2_csctrl $2a comparator status and control register reserved tmr3_comp1 $30 compare register 1 tmr3_comp2 $31 compare register 2 tmr3_capt $32 capture register tmr3_load $33 load register tmr3_hold $34 hold register tmr3_cntr $35 counter register tmr3_ctrl $36 control register tmr3_sctrl $37 status and control register tmr3_cmpld1 $38 comparator load register 1 tmr3_cmpld2 $39 comparator load register 2 tmr3_csctrl $3a comparator status and control register table 4-9 quad timer regi sters address map (continued) (tmr_base = $00 f000) register acronym address offset register description
peripheral memory mapped registers 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 37 preliminary table 4-10 pulse width modula tor registers address map (pwm_base = $00 f040) register acronym address offset register description pwm_ctrl $0 control register pwm_fctrl $1 fault control register pwm_fltack $2 fault status acknowledge register pwm_out $3 output control register pwm_cntr $4 counter register pwm_cmod $5 counter modulo register pwm_val0 $6 value register 0 pwm_val1 $7 value register 1 pwm_val2 $8 value register 2 pwm_val3 $9 value register 3 pwm_val4 $a value register 4 pwm_val5 $b value register 5 pwm_dtim0 $c dead time register 0 pwm_dtim1 $d dead time register 1 pwm_dmap1 $e disable mapping register 1 pwm_dmap2 $f disable mapping register 2 pwm_cnfg $10 configure register pwm_cctrl $11 channel control register pwm_port $12 port register pwm_icctrl $13 internal correction control register pwm_sctrl $14 source control register table 4-11 interrupt contro l registers address map (itcn_base = $00 f060) register acronym address offset register description itcn_ipr0 $0 interrupt priority register 0 itcn_ipr1 $1 interrupt priority register 1 itcn_ipr2 $2 interrupt priority register 2 itcn_ipr3 $3 interrupt priority register 3 itcn_ipr4 $4 interrupt priority register 4 itcn_vba $5 vector base address register itcn_fim0 $6 fast interrupt match 0 register itcn_fival0 $7 fast interrupt ve ctor address low 0 register itcn_fivah0 $8 fast interrupt vector address high 0 register itcn_fim1 $9 fast interrupt match 1 register
56f8013/56f8011 data sheet, rev. 10 38 freescale semiconductor preliminary itcn_fival1 $a fast interrupt ve ctor address low 1 register itcn_fivah1 $b fast interrupt vector address high 1 register itcn_irqp0 $c irq pending register 0 itcn_irqp1 $d irq pending register 1 itcn_irqp2 $e irq pending register 2 reserved itcn_ictrl $12 interrupt control register reserved table 4-12 analog-to-digital c onverter registers address map (adc_base = $00 f080) register acronym address offset register description adc_ctrl1 $0 control register 1 adc_ctrl2 $1 control register 2 adc_zxctrl $2 zero crossing control register adc_clist 1 $3 channel list register 1 adc_clist 2 $4 channel list register 2 adc_sdis $5 sample disable register adc_stat $6 status register adc_limstat $7 limit status register adc_zxstat $8 zero crossing status register adc_rslt0 $9 result register 0 adc_rslt1 $a result register 1 adc_rslt2 $b result register 2 adc_rslt3 $c result register 3 adc_rslt4 $d result register 4 adc_rslt5 $e result register 5 adc_rslt6 $f result register 6 adc_rslt7 $10 result register 7 adc_lolim0 $11 low limit register 0 adc_lolim1 $12 low limit register 1 adc_lolim2 $13 low limit register 2 adc_lolim3 $14 low limit register 3 adc_lolim4 $15 low limit register 4 adc_lolim5 $16 low limit register 5 adc_lolim6 $17 low limit register 6 adc_lolim7 $18 low limit register 7 table 4-11 interrupt control re gisters address map (continued) (itcn_base = $00 f060) register acronym address offset register description
peripheral memory mapped registers 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 39 preliminary adc_hilim0 $19 high limit register 0 adc_hilim1 $1a high limit register 1 adc_hilim2 $1b high limit register 2 adc_hilim3 $1c high limit register 3 adc_hilim4 $1d high limit register 4 adc_hilim5 $1e high limit register 5 adc_hilim6 $1f high limit register 6 adc_hilim7 $20 high limit register 7 adc_offst0 $21 offset register 0 adc_offst1 $22 offset register 1 adc_offst2 $23 offset register 2 adc_offst3 $24 offset register 3 adc_offst4 $25 offset register 4 adc_offst5 $26 offset register 5 adc_offst6 $27 offset register 6 adc_offst7 $28 offset register 7 adc_pwr $29 power control register adc_vref $2a voltage reference register reserved table 4-13 serial communication interface registers address map (sci_base = $00 f0b0) register acronym address o ffset register description sci_rate $0 baud rate register sci_ctrl1 $1 control register 1 sci_ctrl2 $2 control register 2 sci_stat $3 status register sci_data $4 data register table 4-14 serial peripheral interface registers address map (spi_base = $00 f0c0) register acronym address offset register description spi_sctrl $0 status and control register spi_dsctrl $1 data size and controlregister spi_drcv $2 data receive register spi_dxmit $3 data transmit register table 4-12 analog-to-digit al converter register s address map (continued) (adc_base = $00 f080) register acronym address offset register description
56f8013/56f8011 data sheet, rev. 10 40 freescale semiconductor preliminary table 4-15 i 2 c registers address map (i2c_base = $00 f0d0) register acronym address offset register description i2c_addr $0 address register i2c_fdiv $1 frequency divider register i2c_ctrl $2 control register i2c_stat $3 status register i2c_data $4 data i/o register i2c_nfilt $5 noise filter register table 4-16 computer operating properly registers address map (cop_base = $00 f0e0) register acronym address offset register description cop_ctrl $0 control register cop_tout $1 time-out register cop_cntr $2 counter register table 4-17 clock generation module registers address map (occs_base = $00 f0f0) register acronym address offset register description occs_ctrl $0 control register occs_divby $1 divide-by register occs_stat $2 status register reserved occs_shutdn $4 shutdown register occs_octrl $5 oscillator control register
peripheral memory mapped registers 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 41 preliminary table 4-18 gpioa re gisters address map (gpioa_base = $00 f100) register acronym address offset register description gpioa_pupen $0 pull-up enable register gpioa_data $1 data register gpioa_ddir $2 data direction register gpioa_peren $3 peripheral enable register gpioa_iassrt $4 interrupt assert register gpioa_ien $5 interrupt enable register gpioa_iepol $6 interrupt edge polarity register gpioa_ipend $7 interrupt pending register gpioa_iedge $8 interrupt edge-sensitive register gpioa_ppoutm $9 push-pull output mode control register gpioa_rdata $a raw data register gpioa_drive $b drive str ength control register table 4-19 gpiob re gisters address map (gpiob_base = $00 f110) register acronym address offset register description gpiob_pupen $0 pull-up enable register gpiob_data $1 data register gpiob_ddir $2 data direction register gpiob_peren $3 peripheral enable register gpiob_iassrt $4 interrupt assert register gpiob_ien $5 interrupt enable register gpiob_iepol $6 interrupt edge polarity register gpiob_ipend $7 interrupt pending register gpiob_iedge $8 interrupt edge-sensitive register gpiob_ppoutm $9 push-pull output mode control register gpiob_rdata $a raw data register gpiob_drive $b drive strength control register
56f8013/56f8011 data sheet, rev. 10 42 freescale semiconductor preliminary table 4-20 gpioc re gisters address map (gpioc_base = $00 f120) register acronym address offset register description gpioc_pupen $0 pull-up enable register gpioc_data $1 data register gpioc_ddir $2 data direction register gpioc_peren $3 peripheral enable register gpioc_iassrt $4 interrupt assert register gpioc_ien $5 interrupt enable register gpioc_iepol $6 interrupt edge polarity register gpioc_ipend $7 interrupt pending register gpioc_iedge $8 interrupt edge-sensitive register gpioc_ppoutm $9 push-pull output mode control register gpioc_rdata $a raw data register gpioc_drive $b drive strength control register table 4-21 gpiod re gisters address map (gpiod_base = $00 f130) register acronym address offset register description gpiod_pupen $0 pull-up enable register gpiod_data $1 data register gpiod_ddir $2 data direction register gpiod_peren $3 peripheral enable register gpiod_iassrt $4 interr upt assert register gpiod_ien $5 interrupt enable register gpiod_iepol $6 interrupt edge polarity register gpiod_ipend $7 interrupt pending register gpiod_iedge $8 interrupt edge-sensitive register gpiod_ppoutm $9 push-pull output mode control register gpiod_rdata $a raw data register gpiod_drive $b drive strength control register
peripheral memory mapped registers 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 43 preliminary table 4-22 system integration module registers address map (sim_base = $00 f140) register acronym address o ffset register description sim_ctrl $0 control register sim_rstat $1 reset status register sim_swc0 $2 software control register 0 sim_swc1 $3 software control register 1 sim_swc2 $4 software control register 2 sim_swc3 $5 software control register 3 sim_mshid $6 most significant half jtag id sim_lshid $7 least signi ficant half jtag id sim_pwr $8 power control register reserved sim_clkout $a clock out select register sim_gps $b gpio peripheral select register sim_pce $c peripheral clock enable register sim_iosahi $d i/o short address location high register sim_iosalo $e i/o short address location low register table 4-23 power supervisor registers address map (ps_base = $00 f160) register acronym address offset register description ps_ctrl $0 control register ps_stat $1 status register table 4-24 flash module registers address map (fm_base = $00 f400) register acronym address o ffset register description fm_clkdiv $0 clock divider register fm_cnfg $1 configuration register $2 reserved fm_sechi $3 security high half register fm_seclo $4 security low half register $5 - $9 reserved fm_prot $10 protection register $11 - $12 reserved fm_ustat $13 user status register
56f8013/56f8011 data sheet, rev. 10 44 freescale semiconductor preliminary part 5 interrupt controller (itcn) 5.1 introduction the interrupt controller (itcn) m odule is used to arbitr ate between various inte rrupt requests (irqs), to signal to the 56800e core when an inte rrupt of sufficient priority exists , and to what address to jump in order to service this interrupt. 5.2 features the itcn module design includes these distinctive features: ? programmable priority levels for each irq ? two programmable fast interrupts ? notification to sim module to restar t clocks out of wait and stop modes ? ability to drive initial address on the address bus after reset for further information, see table 4-2 , interrupt vector table contents. 5.3 functional description the interrupt controller is a slave on the ipbus. it contains register s that allow each of the 46 interrupt sources to be set to one of four priority levels (excluding certain inte rrupts that are of fi xed priority). next, all of the interrupt requests of a gi ven level are priority encoded to de termine the lowest numerical value of the active interrupt requests for that level. within a given priority le vel, number 0 is th e highest priority and number 45 is the lowest. fm_cmd $14 command register $15 reserved $16 reserved $17 reserved fm_data $18 data buffer register $19 reserved $1a reserved fm_opt1 $1b optional data 1 register reserved fm_tstsig $1d test array signature register table 4-24 flash module regi sters address map (continued) (fm_base = $00 f400) register acronym address o ffset register description
functional description 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 45 preliminary 5.3.1 normal interrupt handling once the intc has determined that an interrupt is to be serviced and which interrupt has the highest priority, an interrupt vect or address is generated. no rmal interrupt handling con catenates the vector base address (vba) and the vector number to determine the vector address, generating an offset into the vector table for each interrupt. 5.3.2 interrupt nesting interrupt exceptions may be nested to allow an irq of higher priori ty than the current exception to be serviced. the following table defines the nesting requirements for each priority level. 5.3.3 fast interrupt handling fast interrupts are described in the dsp56800e reference manual . the interrupt c ontroller recognizes fast interrupts before the core does. a fast interrupt is de fined (to the itcn) by: 1. setting the priority of the interrupt as level 2, with the appropriate field in the ipr registers 2. setting the fim n register to the appropriate vector number 3. setting the fival n and fivah n registers with the address of the code for the fast interrupt when an interrupt occurs, its vector number is compar ed with the fim0 and fim1 register values. if a match occurs, and it is a level 2 inte rrupt, the itcn handles it as a fast interrupt. the itcn takes the vector address from the appropriate fivaln and fivahn registers, instead of generating an addr ess that is an offset from the vba. the core then fetches the instruction from the indicated vector adddress and if it is not a js r, the core starts its fast interrupt handling. table 5-1 interrupt mask bit definition sr[9] sr[8] exceptions permitted exceptions masked 0 0 priorities 0, 1, 2, 3 none 0 1 priorities 1, 2, 3 priority 0 1 0 priorities 2, 3 priorities 0, 1 1 1 priority 3 priorities 0, 1, 2
56f8013/56f8011 data sheet, rev. 10 46 freescale semiconductor preliminary 5.4 block diagram figure 5-1 interrupt controller block diagram 5.5 operating modes the itcn module design contains two major modes of operation: ? functional mode the itcn is in this mode by default. ? wait and stop modes during wait and stop modes, the syst em clocks and the 56800e core are turned off. the itcn will signal a pending irq to the system integr ation module (sim) to restart the clocks and service the irq. an irq can only wake up the core if the irq is enab led prior to entering the wait or stop mode. priority level 2 -> 4 decode int0 priority level 2 -> 4 decode int45 level 0 46 -> 6 priority encoder any0 level 3 46 -> 6 priority encoder any3 int vab ipic control 6 6 pic_en iack sr[9:8]
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 47 preliminary 5.6 register descriptions a register address is the sum of a base address and an addr ess offset. the base addr ess is defined at the system level and the addres s offset is defined at the module leve l. the itcn module has 16 registers. table 5-2 itcn register summary (itcn_base = $00 f060) register acronym base address + register name section location ipr0 $0 interrupt priority register 0 5.6.1 ipr1 $1 interrupt priority register 1 5.6.2 ipr2 $2 interrupt priority register 2 5.6.3 ipr3 $3 interrupt priority register 3 5.6.4 ipr4 $4 interrupt priority register 4 5.6.5 vba $5 vector base address register 5.6.6 fim0 $6 fast interrupt match 0 register 5.6.7 fival0 $7 fast interrupt 0 vector address low register 5.6.8 fivah0 $8 fast interrupt 0 vector address high 0 register 5.6.9 fim1 $9 fast interrupt match 1 register 5.6.10 fival1 $a fast interrupt 1 vector address low register 5.6.11 fivah1 $b fast interrupt 1 vector address high register 5.6.12 irqp0 $c irq pending register 0 5.6.13 irqp1 $d irq pending register 1 5.6.14 irqp2 $e irq pending register 2 5.6.15 reserved ictrl $12 interrupt control register 5.6.16 reserved
56f8013/56f8011 data sheet, rev. 10 48 freescale semiconductor preliminary figure 5-2 itcn register map summary 5.6.1 interrupt priority register 0 (ipr0) figure 5-3 interrupt prio rity register 0 (ipr0) add. offset register name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 $0 ipr0 r lvi ipl 0 0 0 0 rx_reg ipl tx_reg ipl trbuf ipl bkpt_u ipl stpcnt ipl w $1 ipr1 r gpiob ipl gpioc ipl gpiod ipl 0 0 fm_cbe ipl fm_cc ipl fm_err ipl pll ipl w $2 ipr2 r sci_rcv ipl sci_rerr ipl 0 0 sci_tidl ipl sci_xmit ipl spi_xmit ipl spi_rcv ipl gpioa ipl w $3 ipr3 r adca_cc ipl tmr_3 ipl tmr_2 ipl tmr_1 ipl tmr_0 ipl i2c_addr ipl 0 0 0 0 w $4 ipr4 r 0 0 0 0 0 0 0 0 pwm_f ipl pwm_rl ipl adc_zc_le ipl adcb_cc ipl w $5 vba r 0 0 vector_base_address w $6 fim0 r 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 w $7 fival0 r fast interrupt 0 vector address low w $8 fivah0 r 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 vector address high w $9 fim1 r 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 w $a fival1 r fast interrupt 1 vector address low w $b fivah1 r 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 vector address high w $c irqp0 r pending[16:2] 1 w $d irqp1 r pending[32:17] w $e irqp2 r 1 1 1 pending[45:33] w reserved $12 ictrl r int ipic vab int_ dis 1 1 1 0 0 w reserved = reserved base + $0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read lvi ipl 0 0 0 0 rx_reg ipl tx_reg ipl trbuf ipl bkpt_u ipl stpcnt ipl write reset 0 0 0 0 0 0 0 000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 49 preliminary 5.6.1.1 lvi ipl?bits 15?14 this field is used to set the interr upt priority levels for a peripheral ir q. this irq is limited to priorities 0 through 2 and is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.1.2 reserved?bits 13?10 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.1.3 eonce receive register full interrupt priority level (rx_reg ipl)? bits 9?8 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.4 eonce transmit regist er empty interrupt priority level (tx_reg ipl)? bits 7?6 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.5 eonce trace buffer interrupt priority level (trbuf ipl)? bits 5?4 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3
56f8013/56f8011 data sheet, rev. 10 50 freescale semiconductor preliminary 5.6.1.6 eonce breakpoint un it interrupt priority level (bkpt_u ipl)? bits 3?2 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.7 eonce step counte r interrupt priority level (stpcnt ipl)? bits 1?0 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.2 interrupt priority register 1 (ipr1) figure 5-4 interrupt prio rity register 1 (ipr1) 5.6.2.1 gpiob interrupt priorit y level (gpiob ipl)?bits 15?14 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.2 gpioc interrupt priorit y level (gpioc ipl)?bits 13?12 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 base + $1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read gpiob ipl gpioc ipl gpiod ipl 0 0 fm_cbe ipl fm_cc ipl fm_err ipl pll ipl write reset 0 0 0 0 0 0 0 000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 51 preliminary 5.6.2.3 gpiod interrupt priorit y level (gpiod ipl)?bits 11?10 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.4 reserved?bits 9?8 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.2.5 fm command, data, address buffers empty interrupt priority level (fm_cbe ipl)?bits 7?6 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.6 fm command complete priority level (fm_cc ipl)?bits 5?4 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.7 fm error interrupt prio rity level (fm_e rr ipl)?bits 3?2 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
56f8013/56f8011 data sheet, rev. 10 52 freescale semiconductor preliminary 5.6.2.8 pll loss of referenc e or change in lock sta tus interrupt priority level (pll ipl)?bits 1?0 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3 interrupt priority register 2 (ipr2) figure 5-5 interrupt prio rity register 2 (ipr2) 5.6.3.1 sci receiver full interr upt priority level (sci_rcv ipl)? bits 15?14 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.2 sci receiver error interrupt priority level (sci_rerr ipl)? bits 13?12 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.3 reserved?bits 11?10 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. base + $2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read sci_rcv ipl sci_rerr ipl 0 0 sci_tidl ipl sci_xmit ipl spi_xmit ipl spi_rcv ipl gpioa ipl write reset 0000000000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 53 preliminary 5.6.3.4 sci transmitter idle inte rrupt priority level (sci_tidl ipl)? bits 9?8 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.5 sci transmitter empty inte rrupt priority level (sci_xmit ipl)? bits 7?6 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.6 spi transmitter empty inte rrupt priority level (spi_xmit ipl)? bits 5?4 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.7 spi receiver full interr upt priority level (spi_rcv ipl)? bits 3?2 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
56f8013/56f8011 data sheet, rev. 10 54 freescale semiconductor preliminary 5.6.3.8 gpioa interrupt priority level (gpioa ipl)?bits 1?0 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4 interrupt priority register 3 (ipr3) figure 5-6 interrupt prio rity register 3 (ipr3) 5.6.4.1 adca conversion comp lete interrupt pr iority level (adca_cc ipl)?bits 15?14 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.2 timer channel 3 interrupt priority level (tmr_3 ipl)?bits 13?12 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.3 timer channel 2 interrupt priority level (tmr_2 ipl)?bits 11?10 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 base + $3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read adca_cc ipl tmr_3 ipl tmr_2 ipl tmr_1 ipl tmr_0 ipl i2c_addr ipl 0 0 0 0 write reset 0 000000000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 55 preliminary 5.6.4.4 timer channel 1 interrupt priority level (tmr_1 ipl)?bits 9?8 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.5 timer channel 0 interrupt priority level (tmr_0 ipl)?bits 7?6 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.6 i 2 c address detect i nterrupt priority level (i2c_addr ipl)?bits 5?4 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.7 reserved?bits 3?0 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.5 interrupt priority register 4 (ipr4) figure 5-7 interrupt prio rity register 4 (ipr4) 5.6.5.1 reserved?bits 15?8 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. base + $4 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 pwm_f ipl pwm_rl ipl adc_zc_le ipl adcb_cc ipl write reset 0000000000000000
56f8013/56f8011 data sheet, rev. 10 56 freescale semiconductor preliminary 5.6.5.2 pwm fault interrupt priority level (pwm_f ipl)? bits 7?6 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.5.3 reload pwm interrupt priority level (pwm_rl ipl)? bits 5?4 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.5.4 adc zero crossing or li mit error interrupt priority level (adc_zc_le ipl)? bits 3?2 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.5.5 adcb conversion comp lete interrupt pr iority level (adcb_cc ipl)?bits 1?0 this field is used to set the interr upt priority level for irqs. this irq is limited to prio rities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 57 preliminary 5.6.6 vector base address register (vba) figure 5-8 vector base address register (vba) 5.6.6.1 reserved?bits 15?14 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.6.2 vector address bus (vab) bits 13?0 the value in this register is used as the upper 14 bits of the interrupt vector vab[20:0]. the lower 7 bits are determined based on the highest priority interrupt and are then a ppended onto vba be fore presenting the full vab to the core. 5.6.7 fast interrupt match 0 register (fim0) figure 5-9 fast interrupt match 0 register (fim0) 5.6.7.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.7.2 fast interrupt 0 vector number (fast inte rrupt 0)?bits 5?0 these values determine which irq will be fast interrupt 0. fast interrupts vector directly to a service routine based on values in the fast interrupt vector address registers without having to go to a jump table first. irqs used as fast interrupts must be set to priority level 2. unexp ected results will occur if a fast interrupt vector is set to any othe r priority. a fast interrupt automa tically becomes the highest-priority level 2 interrupt regardless of its location in the interru pt table prior to being de clared as fast interrupt. fast interrupt 0 has priority over fa st interrupt 1. to determine the v ector number of each irq, refer to the vector table. base + $5 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 vector_base_address write reset 000000 0 0 00000000 base + $6 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 write reset 0000000000000000
56f8013/56f8011 data sheet, rev. 10 58 freescale semiconductor preliminary 5.6.8 fast interrupt 0 vector address low register (fival0) figure 5-10 fast interrupt 0 vect or address low register (fival0) 5.6.8.1 fast interrupt 0 vector address low (fi val0)?bits 15?0 the lower 16 bits of the vector addr ess used for fast interrupt 0. this register is combined with fivah0 to form the 21-bit vector address for fast interrupt 0 defined in the fim0 register. 5.6.9 fast interrupt 0 vector address high register (fivah0) figure 5-11 fast interr upt 0 vector address high register (fivah0) 5.6.9.1 reserved?bits 15?5 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.9.2 fast interrupt 0 vector address high (fi vah0)?bits 4?0 the upper five bits of the vector a ddress used for fast inte rrupt 0. this register is combined with fival0 to form the 21-bit vector address for fast interrupt 0 defined in the fim0 register. 5.6.10 fast interrupt 1 match register (fim1) figure 5-12 fast interrupt 1 match register (fim1) 5.6.10.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.10.2 fast interrupt 1 vector number (fast inte rrupt 1)?bits 5?0 these values determine which irq will be fast interrupt 1. fast interrupts vector directly to a service routine based on values in the fast interrupt vector address registers without having to go to a jump table first. irqs used as fast interrupts must be set to priority level 2. unexp ected results will occur if a fast base + $7 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read fast interrupt 0 vector address low write reset 0000000000000000 base + $8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 vector address high write reset 0000000000000000 base + $9 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 write reset 0000000000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 59 preliminary interrupt vector is set to any othe r priority. a fast inte rrupt automatically beco mes the highest priority level 2 interrupt, regardless of its location in the interr upt table prior to being d eclared as fast interrupt. fast interrupt 0 has priority over fast interrupt 1. to determine the vector numbe r of each irq, refer to the vector table. 5.6.11 fast interrupt 1 vector address low register (fival1) figure 5-13 fast interrupt 1 vect or address low register (fival1) 5.6.11.1 fast interrupt 1 vector address low (fi val1)?bits 15?0 the lower 16 bits of the vector addr ess used for fast interrupt 1. this register is combined with fivah1 to form the 21-bit vector address for fast interrupt 1 defined in the fim1 register. 5.6.12 fast interrupt 1 vector address high (fivah1) figure 5-14 fast interr upt 1 vector address high register (fivah1) 5.6.12.1 reserved?bits 15?5 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.6.12.2 fast interrupt 1 vector address high (fi vah1)?bits 4?0 the upper five bits of the vector a ddress used for fast inte rrupt 1. this register is combined with fival1 to form the 21-bit vector address for fast interrupt 1 defined in the fim1 register. 5.6.13 irq pending register 0 (irqp0) figure 5-15 irq pending register 0 (irqp0) base + $a 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read fast interrupt 1 vector address low write reset 0000000000000000 base + $b 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 vector address high write reset 0000000000000000 base + $c 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read pending[16:2] 1 write reset 1111111111111111
56f8013/56f8011 data sheet, rev. 10 60 freescale semiconductor preliminary 5.6.13.1 irq pending (pending)?bits 15?1 this register combines with irqp1 and irqp2 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number 5.6.13.2 reserved?bit 0 this bit is reserved or not implemented. it is read as 1 and cannot be modified by writing. 5.6.14 irq pending register 1 (irqp1) figure 5-16 irq pending register 1 (irqp1) 5.6.14.1 irq pending (pending)?bits 32?17 this register combines with irqp0 and irqp2 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number 5.6.15 irq pending register 2 (irqp2) figure 5-17 irq pending register 2 (irqp2) 5.6.15.1 irq pending (pending)?bits 45?33 this register combines with irqp0 and irqp1 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number base + $d 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read pending[32:17] write reset 1111111111111111 base + $e 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 1 1 1 pending[45:33] write reset 1111111111111111
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 61 preliminary 5.6.16 interrupt contro l register (ictrl) figure 5-18 interrupt cont rol register (ictrl) 5.6.16.1 interrupt (int)?bit 15 this read-only bit reflects the state of th e interrupt to the 56800e core. ? 0 = no interrupt is be ing sent to the 56800e core ? 1 = an interrupt is be ing sent to the 56800e core 5.6.16.2 interrupt priority level (ipic)?bits 14?13 these read-only bits reflect the state of the new interrupt priority level bits be ing presented to the 56800e core. these bits indicate the priority level needed fo r a new irq to interrupt the current interrupt being sent to the 56800e core. this field is only updated wh en the 56800e core jumps to a new interrupt service routine. note: nested interrupts may cause this field to be update d before the original inte rrupt service routine can read it. ? 00 = required nested exception prio rity levels are 0, 1, 2, or 3 ? 01 = required nested exception pr iority levels are 1, 2, or 3 ? 10 = required nested exceptio n priority levels are 2 or 3 ? 11 = required nested exception priority level is 3 5.6.16.3 vector number - vec tor address bus (vab)?bits 12?6 this read-only field shows the vector number (vab[6:0]) used at the time the last irq was taken. in the case of a fast interrupt, it shows the lower address bits of the jump address. th is field is only updated when the 56800e core jumps to a new interrupt service routine. note: nested interrupts may cause this field to be update d before the original inte rrupt service routine can read it. $base + $12 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read int ipic vab int_ dis 1 1 1 0 0 write reset 0000000000011100 table 5-3 interrupt priority encoding ipic_value[1:0] current interrupt priority level required nested exception priority 00 no interrupt or swilp priorities 0, 1, 2, 3 01 priority 0 priorities 1, 2, 3 10 priority 1 priorities 2, 3 11 priority 2 or 3 priority 3
56f8013/56f8011 data sheet, rev. 10 62 freescale semiconductor preliminary 5.6.16.4 interrupt disable (int_dis)?bit 5 this bit allows all interrupts to be disabled. ? 0 = normal operation (default) ? 1 = all interrupts disabled 5.6.16.5 reserved?bits 4?2 this bit field is reserved or not implemented. it is read as 1 a nd cannot be modified by writing. 5.6.16.6 reserved?bits 1?0 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 5.7 resets 5.7.1 general 5.7.2 description of reset operation 5.7.2.1 reset handshake timing the itcn provides the 56800e core with a reset vector address on the vab pins whenever reset is asserted from the sim. th e reset vector will be pr esented until the second risi ng clock edge after reset is released. the genera l timing is shown in figure 5-19 . figure 5-19 reset interface table 5-4 reset summary reset priority source characteristics core reset rst core reset from the sim res clk vab pab reset_vector_adr read_adr
introduction 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 63 preliminary 5.7.3 itcn after reset after reset, all of the itcn regist ers are in their default states. this means all interrupts are disabled, except the core irqs wi th fixed priorities: ? illegal instruction ? sw interrupt 3 ? hw stack overflow ? misaligned long word access ? sw interrupt 2 ? sw interrupt 1 ? sw interrupt 0 ? sw interrupt lp these interrupts are enabled at their fixed priority levels. part 6 system integration module (sim) 6.1 introduction the sim module is a system catchall for the glue logic that ties together the system-on-chip. it controls distribution of resets and clocks and provides a number of control features. the system integration module is responsible for the following functions: ? reset sequencing ? clock control & distribution ? stop/wait control ? system status registers ? registers for software access to the jtag id of the chip ? test registers ? power control ? i/o pad multiplexing these are discussed in more detail in the sections that follow.
56f8013/56f8011 data sheet, rev. 10 64 freescale semiconductor preliminary 6.2 features the sim has the following features: ? system bus clocks with pipeline hold-off support ? system clocks for non-pipelined interfaces ? peripheral clocks for tmr and pwm with high-speed (3x) option ? power-saving clock gating for peripherals ? itck clock to the 56800e core tap interface ? three power modes (run, wait, st op) to control power utilization ? stop mode shuts down the 56800e core, system clock, and peripheral clock ? wait mode shuts down the 56800e core and unnecessary system clock operation ? run mode supports full part operation ? controls, with write protection, the enable/disab le of 56800e core wait and stop instructions ? controls, with write protection, the enab le/disable of large regulator standby mode ? controls to route functional signals to selected peripherals and i/o pads ? controls deassertion sequence of internal resets ? software-initiated reset ? four 16-bit registers reset only by a power-on r eset usable for general-purpose software control ? timer channel stop mode clocking controls ? sci stop mode clocking control to support lin sleep mode stop recovery ? short addressing location control ? registers for software access to the jtag id of the chip ? controls output to clko pin
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 65 preliminary 6.3 register descriptions table 6-1 sim register s (sim_base = $00 f140) address offset address acronym register name section location base + $0 sim_ctrl control register 6.3.1 base + $1 sim_rstat res et status register 6.3.2 base + $2 sim_swc0 software control register 0 6.3.3 base + $3 sim_swc1 software control register 1 6.3.3 base + $4 sim_swc2 software control register 2 6.3.3 base + $5 sim_swc3 software control register 3 6.3.3 base + $6 sim_mshid most signi ficant half of jtag id 6.3.4 base + $7 sim_lshid least significant half of jtag id 6.3.5 base + $8 sim_pwr power control register 6.3.6 reserved base + $a sim_clkout cl ko select register 6.3.7 base + $b sim_gps gpio peri pheral select register 6.3.8 base + $c sim_pce peripheral clock enable register 6.3.9 base + $d sim_iosahi i/o short address location high register 6.3.10 base + $e sim_iosalo i/o short address location low register 6.3.10
56f8013/56f8011 data sheet, rev. 10 66 freescale semiconductor preliminary figure 6-1 sim register map summary 6.3.1 sim control register (sim_ctrl) figure 6-2 sim control register (sim_ctrl) 6.3.1.1 timer channel 3 s top disable (tc3_sd)?bit 15 this bit enables the operation of the time r channel 3 peripheral clock in stop mode. ? 0 = timer channel 3 disabled in stop mode ? 1 = timer channel 3 enabled in stop mode add. offset address acronym 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 $0 sim_ ctrl r tc3_ sd tc2_ sd tc1_ sd tc0_ sd sci_ sd 0 tc3_ inp 0 0 0 once ebl 0 sw rst stop_ disable wait_ disable w $1 sim_ rstat r 0 0 0 0 0 0 0 0 0 0 swr copr extr por 0 0 w $2 sim_swc0 r software control data 0 w $3 sim_swc1 r software control data 1 w $4 sim_swc2 r software control data 2 w $5 sim_swc3 r software control data 3 w $6 sim_mshid r 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 w $7 sim_lshid r 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 w $8 sim_pwr r 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lrstdby w reserved $a sim_ clkout r 0 0 0 0 0 0 pwm 3pwm 2pwm 1pwm 0 clk dis clkosel w $b sim_gps r tcr pcr 0 0 cfg_ b7 cfg_ b6 cfg_ b5 cfg_ b4 cfg_ b3 cfg_ b2 cfg_ b1 cfg_ b0 cfg_a5 cfg_a4 w $c sim_pce r i2c 0 adc 0 0 0 0 0 0 tmr 0 sci 0 spi 0 pwm w $d sim_iosahi r 0 0 0 0 0 0 0 0 0 0 0 0 0 0 isal[23:22] w $e sim_iosalo r isal[21:6] w 0 = read as 0 1 = read as 1 = reserved = reserved base + $0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read tc3_ sd tc2_ sd tc1_ sd tc0_ sd sci_ sd 0 tc3_ inp 0 0 0 once ebl sw rst stop_ disable wait_ disable write reset 0000000000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 67 preliminary 6.3.1.2 timer channel 2 s top disable (tc2_sd)?bit 14 this bit enables the operation of the time r channel 2 peripheral clock in stop mode. ? 0 = timer channel 2 disabled in stop mode ? 1 = timer channel 2 enabled in stop mode 6.3.1.3 timer channel 1 s top disable (tc1_sd)?bit 13 this bit enables the operation of the time r channel 1 peripheral clock in stop mode. ? 0 = timer channel 1 disabled in stop mode ? 1 = timer channel 1 enabled in stop mode 6.3.1.4 timer channel 0 s top disable (tc0_sd)?bit 12 this bit enables the operation of the time r channel 0 peripheral clock in stop mode. ? 0 = timer channel 0 disabled in stop mode ? 1 = timer channel 0 enabled in stop mode 6.3.1.5 sci stop disable (sci_sd)?bit 11 this bit enables the operation of the sci peripheral clock in stop mode. this is recommended for use in lin mode so that the sci can generate interrupts and recover from stop mode while the lin interface is in sleep mode and using stop m ode to reduce power consumption. ? 0 = sci disabled in stop mode ? 1 = sci enabled in stop mode 6.3.1.6 reserved?bit 10 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.1.7 timer channel 3 input (tc3_inp)?bit 9 this bit selects the input of timer ch annel 3 to be from the pwm or gpio. ? 1 = timer channel 3 input from pwm reload_sync signal ? 0 = timer channel 3 input controlled by si m_gps register cfg_b3 and cfg_a5 fields 6.3.1.8 reserved?bits 8?6 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.1.9 once enable (onceebl)?bit 5 ? 0 = once clock to 56800e core en abled when core tap is enabled ? 1 = once clock to 56800e core is always enabled 6.3.1.10 software reset (swrst)?bit 4 writing 1 to this field will cause the part to reset.
56f8013/56f8011 data sheet, rev. 10 68 freescale semiconductor preliminary 6.3.1.11 stop disable (sto p_disable[1:0])?bits 3?2 ? 00 = stop mode will be entered when the 56800e core executes a stop instruction ? 01 = the 56800e stop instruction will not cause entry into stop mode ? 10 = stop mode will be entered when the 5680 0e core executes a stop instruction and the stop_disable field is write-protected until the next reset ? 11 = the 56800e stop instruction will not cause entry into stop mode and the stop_disable field is write-protected until the next reset 6.3.1.12 wait disable (wait_disable[1:0])?bits 1?0 ? 00 = wait mode will be entered when th e 56800e core executes a wait instruction ? 01 = the 56800e wait instructio n will not cause entry into wait mode ? 10 = wait mode will be entered when the 568 00e core executes a wait instruction and the wait_disable field is write-pro tected until the next reset ? 11 = the 56800e wait instruction will not cause entry into wait mode and the wait_disable field is write-protected until the next reset 6.3.2 sim reset status register (sim_rstat) this register is updated upon any system reset and indi cates the cause of the most recent reset. it also controls whether the cop reset vector or regular reset vector in the vect or table is used. this register is asynchronously reset during power-on reset (see power supervisor module) and subsequently is synchronously updated based on th e level of the external reset, softwa re reset, or cop reset inputs. only one source will ever be indicated. in the event that multiple reset sources assert simultaneously, the highest-precedence source will be indicated. the pre cedence from highest to lowest is por, extr, copr, and swr. while por is always set during a power-on reset, extr wi ll become set if the external reset pin is asserted or remains assert ed after the power-on reset (por) has deasserted. figure 6-3 sim reset status register (sim_rstat) 6.3.2.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as zero and cannot be modified by writing. 6.3.2.2 software reset (swr)?bit 5 when set, this bit indicates that the previous system reset occurred as a result of a softwa re reset (written 1 to swrst bit in the sim_ctrl register). it will not be set if a cop, exte rnal, or por reset also occurred. 6.3.2.3 cop reset (copr)?bit 4 when set, this bit indicates that the previous syst em reset was caused by the computer operating properly (cop) timer. it will not be set if an external or por reset also occurred. if co pr is set as code starts executing, the cop reset vector in the vector table will be us ed. otherwise, the normal reset vector is used. base + $1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 swr copr extr por 0 0 write reset 0000000000 00
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 69 preliminary 6.3.2.4 external reset (extr)?bit 3 when set, this bit indicates that the previous system reset was caused by an external reset. it will only be set if the external reset pin was asserted or rema ined asserted after the power-on reset deasserted. 6.3.2.5 power-on reset (por)?bit 2 this bit is set during a power-on reset. 6.3.2.6 reserved?bits 1?0 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.3 sim software control registers (sim_swc0, sim_swc1, sim_swc2, and sim_swc3) only sim_swc0 is shown in th is section. sim_swc1, sim_swc2, and sim_swc3 are identical in functionality. figure 6-4 sim software cont rol register 0 (sim_swc0) 6.3.3.1 software control data 0 (field)?bits 15?0 this register is reset only by th e power-on reset (por). it has no part-specific functionality and is intended for use by a software develope r to contain data that will be unaffected by the other re set sources (reset pin, software reset, and cop reset). 6.3.4 most significant half of jtag id (sim_mshid) this read-only register displays the most significant half of the jtag id for the ch ip. this register reads $01f2. figure 6-5 most significant half of jtag id (sim_mshid) 6.3.5 least significant half of jtag id (sim_lshid) this read-only register displays th e least significant half of the jtag id for the chip. this register reads $401d. base + $2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read software control data 0 write reset 0 0 0 0 0 0 0 0000 0 0000 base + $6 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 write reset 0 0 0 0 0 0 0 1111 1 0010
56f8013/56f8011 data sheet, rev. 10 70 freescale semiconductor preliminary figure 6-6 least significant half of jtag id (sim_lshid) 6.3.6 sim power control register (sim_pwr) this register controls the standby mode of the large regulator. the large regulato r derives the core digital logic power supply from the io power supply. in some circumstances, the large re gulator may be put in a reduced-power standby mode wit hout interfering with part opera tion. refer to the overview of power-down modes and the overview of clock generation for more in formation on the use of large regulator standby. figure 6-7 sim power cont rol register (sim_pwr) 6.3.6.1 reserved?bits 15?2 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.6.2 large regulator sta ndby mode[1:0] (lrstdby)?bits 1?0 this bit controls the pull-up resistors on the irqa pin. ? 00 = large regulator is in normal mode ? 01 = large regulator is in standby (reduced-power) mode ? 10 = large regulator is in normal mode and the lr stdby field is write-protected until the next reset ? 11 = large regulator is in standby mode and the lrstdby field is write-protected until the next reset 6.3.7 clko select re gister (sim_clkout) the clko select register can be used to multiple x out selected clocks generated inside the clock generation and sim modules. all functionality is for test purposes only and is subject to unspecified latencies. glitches may be produ ced when the clock is enabled or switched. the lower four bits of the gpio a register can function as gpio, pwm, or as additional clock output signals. gpio has priority and is enabled/disabled via the gp ioa_peren. if gpioa[3:0] are programmed to operate as peripheral outputs, then the choice be tween pwm and addi tional clock outputs is done here in the clkout. the default state is for the peripheral functi on of gpioa[3:0] to be programmed as pwm. this can be changed by altering pwm 3 through pwm 0. base + $7 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 write reset 0 1 0 0 0 0 0 0000 1 1101 base + $8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lrstdby write reset 0000000000000000
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 71 preliminary figure 6-8 clko select register (sim_clkout) 6.3.7.1 reserved?bits 15?10 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.7.2 pwm 3?bit 9 ? 0 = peripheral output function of gpioa[3] is defined to be pwm 3 ? 1 = peripheral output function of gpioa[3] is defined to be the relaxation oscillator clock 6.3.7.3 pwm 2?bit 8 ? 0 = peripheral output function of gpioa[2] is defined to be pwm 2 ? 1 = peripheral output function of gpioa[2] is defined to be the system clock 6.3.7.4 pwm 1?bit 7 ? 0 = peripheral output function of gpioa[1] is defined to be pwm 1 ? 1 = peripheral output function of gpioa[1] is defined to be two times the rate of the system clock 6.3.7.5 pwm 0?bit 6 ? 0 = peripheral output function of gpioa[0] is defined to be pwm 0 ? 1 = peripheral output function of gpioa[0] is defi ned to be three times the rate of the system clock 6.3.7.6 clockout disable (clkdis)?bit 5 ? 0 = clkout output is enabled and will output the signal indicated by clkosel ? 1 = clkout is 0 6.3.7.7 clockout select (clkosel)?bits 4?0 selects clock to be muxed out on the clko pin. ? 00000 = reserved for factory test?continuous system clock ? 01001 = reserved for factory test?occs mstr osc clock ? 01011 = reserved for factory test?adc clock ? 01100 = reserved for factory test?jtag tclk ? 01101 = reserved for factory test?continuous peripheral clock ? 01110 = reserved for factory test?con tinuous inverted peripheral clock ? 01111 = reserved for factory test?continuous high-speed peripheral clock base + $a 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 pwm 3pwm 2pwm 1pwm 0 clk dis clkosel write reset 0 0 0 0 0 0 0 0 0 0 1 00000
56f8013/56f8011 data sheet, rev. 10 72 freescale semiconductor preliminary 6.3.8 sim gpio peripheral select register (sim_gps) all of the peripheral pi ns on the 56f8013/56f8011 share their input /output (i/o) with gpio ports. in order to select peripheral or gpio control, program the gpio x _peren register. in some cases, there are two possible peripherals as well as the gpio functionality available for control of the i/o. in these cases, the sim_gps register is used to de termine which peripheral has control. as shown in figure 6-9 , the gpio peripheral enable register (peren) has the fina l control over which pin controls the i/o. sim_gps si mply decides which peripheral w ill be routed to the i/o when peren = 1. figure 6-9 overall control of pads using si m_gps control figure 6-10 gpio peripheral se lect register (sim_gps) 6.3.8.1 tmr clock rate (tcr)?bit 15 this bit selects the clock speed for the tmr module. ? 0 = tmr module clock rate equals core clock rate, typically 32mhz (default) ? 1 = tmr module clock rate equals three times core clock rate note: this bit should only be changed while the tmr module?s clock is disabled. see section 6.3.9 . note: high-speed clocking is only availa ble when the pll is being used. note: if the pwm reload pulse is used as i nput to timer 3 (see sim_ctrl: tc3_inp, section 6.3.1.7 ), then the clocks of the quad timer and pwm must be related, as shown in table 6-2 . base + $b 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read tcr pcr 0 0 cfg_ b7 cfg_ b6 cfg_ b5 cfg_ b4 cfg_ b3 cfg_ b2 cfg_ b1 cfg_ b0 cfg_a5 cfg_a4 write reset 000000000000 0000 gpiob_peren register gpio controlled i/o pad control sim_gps register quad timer controlled sci controlled 0 1 0 1
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 73 preliminary 6.3.8.2 pwm clock rate (pcr)?bit 14 this bit selects the clock speed for the pwm module. ? 0 = pwm module clock rate equals core clock rate, typica lly 32mhz (default) ? 1 = pwm module clock rate equa ls three times core clock rate note: this bit should only be changed while the pwm module?s clock is disabled. see section 6.3.9 . note: high-speed clocking is only available when the pll is being used. note: if the pwm reload pulse is used as input to timer 3 (see sim_ctrl: tc3_inp, section 6.3.1.7 ), then the clocks of the quad timer a nd pwm must be related, as shown in table 6-2 . 6.3.8.3 reserved?bits 13?12 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. note: take care when programming the following cfg_* signals so as not to connect two different i/o pads to the same peripheral input . for example, do not set cfg_b7 to select scl and also set cfg_b0 to select scl. if th is occurs for an output signal, then the signal will be routed to two i/o pads. for input si gnals, the values on the two i/o pads will be ored together before reaching the peripheral. 6.3.8.4 configure gpiob7 (cfg_b7)?bit 11 this bit selects the alternate function for gpiob7. ? 0 = txd (default) ?1 = scl 6.3.8.5 configure gpiob6 (cfg_b6)?bit 10 this bit selects the alternate function for gpiob6. ? 0 = rxd (default) ?1 = sda note: the clkmode bit in the occs oscillator c ontrol register can enab le this pin as the source clock to the chip. in this mode, make sure that no on-chip peripheral (including the gpio) is driving this pin. table 6-2 allowable quad timer and pwm clock rates when using pwm reload pulse quad timer clock speed 1x 3x pwm 1x ok ok 3x no ok
56f8013/56f8011 data sheet, rev. 10 74 freescale semiconductor preliminary 6.3.8.6 configure gpiob5 (cfg_b5)?bit 9 this bit selects the alternate function for gpiob5. ? 0 = t1 (default) ?1 = fault3 6.3.8.7 configure gpiob4 (cfg_b4)?bit 8 this bit selects the alternate function for gpiob4. ? 0 = t0 (default) ?1 = clko 6.3.8.8 configure gpiob3 (cfg_b3)?bit 7 this bit selects the alternate function for gpiob3. ? 0 = mosi (default) ?1 = t3 6.3.8.9 configure gpiob2 (cfg_b2)?bit 6 this bit selects the alternate function for gpiob2. ? 0 = miso (default) ?1 = t2 6.3.8.10 configure gpiob1 (cfg_b1)?bit 5 this bit selects the alternate function for gpiob1. ?0 = ss (default) ?1 = sda 6.3.8.11 configure gpiob0 (cfg_b0)?bit 4 this bit selects the alternate function for gpiob0. ? 0 = sclk (default) ?1 = scl 6.3.8.12 configure gpio a5[1:0] (cfg_a5)?bits 3?2 these bits select the alternate function for gpioa5. ? 00 = select pwm5 when peripheral mode is enabled in gpioa5 (default) ? 01 = select pwm5 when peripheral mode is enabled in gpioa5 ? 10 = select fault2 when peripheral mode is enabled in gpioa5 ? 11 = select t3 when peripheral mode is enabled in gpioa5
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 75 preliminary 6.3.8.13 configure gpio a4[1:0] (cfg_a4)?bits 1?0 these bits select the alternate function for gpioa4. ? 00 = select pwm4 when peripheral mode is enabled in gpioa4 (default) ? 01 = select pwm4 when peripheral mode is enabled in gpioa4 ? 10 = select fault1 when peripheral mode is enabled in gpioa4 ? 11 = select t2 when peripheral mode is enabled in gpioa4 6.3.9 peripheral clock enable register (sim_pce) the peripheral clock enable register is used to enab le or disable clocks to the peripherals as a power savings feature. the clocks can be individually controlled for each peripheral on the chip. the corresponding peripheral should itself be disabled while its clock is shut off. ip bus writes cannot be made to a module that has its clock disabled. figure 6-11 peripheral clock en able register (sim_pce) 6.3.9.1 i 2 c ipbus clock enable (i2c)?bit 15 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.2 reserved?bit 14 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.9.3 analog-to-digital converte r ipbus clock enab le (adc)?bit 13 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.4 reserved?bits 12?7 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.9.5 timer ipbus cl ock enable (tmr)?bit 6 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled base + $c 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read i2c 0 adc 0 0 0 0 0 0 tmr 0 sci 0 spi 0 pwm write reset 0000000 0 00000 0 0 0
56f8013/56f8011 data sheet, rev. 10 76 freescale semiconductor preliminary 6.3.9.6 reserved?bit 5 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.9.7 sci ipbus clock enable (sci)?bit 4 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.8 reserved?bit 3 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.9.9 spi ipbus clock enable (spi)?bit 2 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.10 reserved?bit 1 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.9.11 pwm ipbus clock enable (pwm)?bit 0 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.10 i/o short address locat ion register (sim_iosahi and sim_iosalo) the i/o short address locat ion registers are used to specify the memory refe renced via the i/o short address mode. the i/o short address m ode allows the instruction to spec ify the lower six bits of address; the upper address bits are not directly controllable. this register set allows limited control of the full address, as shown in figure 6-12 .
register descriptions 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 77 preliminary figure 6-12 i/o short address determination with this register set, an interrupt driver can set th e sim_iosalo register pair to point to its peripheral registers and then use the i/o short addressing mode to reference them. the isr should restore this register to its previous contents prio r to returning from interrupt. note: the default value of this register set points to the eonce registers. note: the pipeline delay between setting this register set and using shor t i/o addressing with the new value is five instruction cycles. figure 6-13 i/o short address locat ion high register (sim_iosahi) 6.3.10.1 reserved?bits 15?2 this bit field is reserved or not implemented. it is read as 0 a nd cannot be modified by writing. 6.3.10.2 input/output short addres s location (isal[23:22])?bits 1?0 this field represents the upper two address bi ts of the ?hard code d? i/o short address. base + $d 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 0 0 0 isal[23:22] write reset 000000 0 0 0000 0 0 11 instruction portion ? hard coded? address portion 6 bits from i/o short address mode instruction 16 bits from sim_iosalo register 2 bits from sim_iosahi register full 24-bit for short i/o address
56f8013/56f8011 data sheet, rev. 10 78 freescale semiconductor preliminary figure 6-14 i/o short address locat ion low register (sim_iosalo) 6.3.10.3 input/output short addres s location (isal[2 1:6])?bits 15?0 this field represents the lower 16 address bi ts of the ?hard code d? i/o short address. 6.4 clock generation overview the sim uses master cloc ks from the occs module to produce the peripheral and system (core and memory) clocks. the hs_perf clock input from occs operates at thre e times the system and peripheral bus rate, or a maximum of 96mhz. the sys_clk_x2 clock input from occs operates at two times the system and peripheral bus rate, or a maximum of 64mhz. peri pheral and system clocks are generated at a maximum of 32mhz by dividing the sys_clk_x2 clock by two and gati ng it with appropriate power mode and clock gating controls. th e pwm and timer peripheral clocks can optionally be generated at three times the normal rate at a maximum of 96mhz . these clocks are generated by gating the hs_perf clock with appropriate power m ode and clock gating controls. the occs configuration controls the operating frequenc y of the sim?s master cl ocks. in the occs, either an external clock or the relaxation oscillator can be sel ected as the master clock source (mstr_osc). when selected, the relaxation oscillator can be operated at full speed (8 mhz), standby speed (400khz using rosb), or powered down (using ropd). an 8mhz mstr_o sc can be multiplied to 196mhz using the pll and postscaled to provide a variety of high speed clock rates. ei ther the postscaled pll output or mstr_osc signal can be selected to produc e the master clocks to the sim. when the pll is not selected, the hs_perf clock is disabl ed and the sys_clk_x2 clock is mstr_osc. in combination with the occs module, the sim provides power modes (see section 6.5 ), clock enables (sim_pce register, clk_dis, once_ebl), and clock rate cont rols (tcr, pcr) to provide flexible control of clocking and power utiliz ation. the sim?s clock enable c ontrols can be used to disable individual clocks when not needed. the clock rate controls en able the high speed clocking option for the timer channels and pwm but require the pll to be on a nd selected. refer to the 56f801x peripheral user manual for further details. 6.5 power-down modes the 56f8013/56f8011 operates in one of fi ve power-down mode s, as shown in table 6-3 . base + $e 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read isal[21:6] write reset 111111 1 1 1111 1 1 11
power-down modes 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 79 preliminary the power modes provide additional means to disable clock domains, configure the voltage regulator, and configure clock generation to manage power utilizati on, as shown in table 6-3 . run, wait, and stop modes provide means of enabling/di sabling the peripheral a nd/or core clocking as a group. stop disable controls are provided for selected pe ripherals in the control register (s ci and tmr channels) so that these peripheral clocks can optionally continue to operate in stop mode and generate in terrupts which will return the part from stop to run mode. standby mode provide s normal operation but at very low speed and power utilization. it is pos sible to invoke stop or wait mode while in standby mode for ev en greater levels of table 6-3 clock operation in power-down modes mode core clocks peripheral clocks description run core and memory clocks disabled peripheral clocks enabled device is fully functional wait core and memory clocks disabled peripheral clocks enabled core executes wait instruction to enter this mode. typically used for power-conscious applications. possible recoveries from wait mode to run mode are: 1. any interrupt 2. executing a debug mode entry command during the 56800e core jtag interface 2. any reset (por, external, software, cop) stop master clock generation in the occs remains operational, but the sim disables the generation of system and peripheral clocks. core executes stop instruction to enter this mode. possible recoveries from stop mode to run mode are: 1. interrupt from tmr channels that have been configured to operate in stop mode (tcx_sd) 2. interrupt for sci configured to operate in stop mode (sci_sd) 3. low-voltage interrupt 4. executing a debug mode entry command using the 56800e core jtag interface 5. any reset (por, external, software, cop) standby the occs gener ates the sys_clk_x2 clock at a reduced frequency (400khz). the pll and hs_perf clo cks are disabled and the high-speed peripheral option is not available. system and peripheral clocks operate at 200khz. the user configures the occs and sim to select the relaxation oscillator clock source (precs), shut down the pll (pllpd), put the relaxation oscillator in standby mode (rosb), and put the large regulator in standby (lrstdby). the part is fully operational, but operating at a minimum frequency and power configuration. recovery requires reversing the sequence used to enter this mode (allowing for pll lock time). power-down master clock generation in the occs is completely shut down. all system and peripheral clocks are disabled. the user configures the occs and sim to enter standby mode as shown in the previous description, followed by powering down the oscillator (ropd). the only possible recoveries from this mode are: 1. external reset 2. power-on reset
56f8013/56f8011 data sheet, rev. 10 80 freescale semiconductor preliminary power reduction. a 400khz cloc k external clock can optionally be used in standby mode to produce the required standby 200khz system bus ra te. power-down mode, which sele cts the rosc clock source but shuts it off, fully disables the pa rt and minimizes its power utilization but is onl y recoverable via reset. when the pll is not selected and the system bus is operating at 200khz or less, the large regulator can be put into its standby mode (lrstdby) to redu ce the power utilizati on of that regulator. all peripherals, except the cop/watchdog timer, r un at the ipbus clock (peripheral bus) frequency 1 , which is the same as the main processor frequency in this architecture. the cop timer runs at mstr_osc / 1024. the maximum frequency of operati on is sys_clk = 32mhz. the only exception is the tmr and pwm, which can be configured to operate at three times the system bus rate using tcr and pcr controls, provided the p ll is active and selected. 6.6 resets the sim supports four source s of reset, as shown in figure 6-15 . the two asynchronous sources are the external reset pin and the power-on reset (por). the two synchronous sources ar e the software reset, which is generated within the sim itself by writing the sim_ ctrl register in section 6.3.1 , and the cop reset. the sim uses these to ge nerate resets for the internal logic. these are outlined in table 6-4 . the first column lists the four primary resets which are calculated. the jtag circuitry is reset by the power-on reset. columns two through five i ndicate which reset sources trigger these reset signals. the last column provides additional detail. figure 6-15 provides a graphic illustration of the details in table 6-4 . note that the por_delay blocks use the relaxation oscillator clock as their time base since other syst em clocks are inactive during this phase of reset. 1. the tmr ans pwm modules can be operated at three times the ipbus clock frequency. table 6-4 primary system resets reset sources reset signal por external software cop comments extended_por x stretche d version of por . relevant 64 relaxation oscillator clock cycles after por deasserts. clkgen_rst x x x x released 32 relaxation oscillator clock cycles after all reset sources have released. perip_rst x x x x releases 32 relaxation oscillator clock cycles after the clkgen_rst is released. core_rst x x x x releases 32 sys_clk periods after perip_rst is released.
resets 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 81 preliminary figure 6-15 sources of r eset functional diagram (t est modes not included) por resets are extende d 64 mstr_osc clocks to st abilize the power supply. al l resets are subsequently extended for an additional 32 mstr_o sc clocks and 64 system clocks as the various internal reset controls are released. given the nor mal relaxation oscillator rate of 8mhz, the duration of a por reset from when power comes on to when code is running is 28 s. an external reset generation chip may also be used. resets may be a sserted asynchronously, but th ey are always released internally on a rising edge of the system clock. extended_por jtag memory subsystem peripherals 56800e core_rst delay 32 sys clocks occs clkgen_rst perip_rst delay 32 sys clocks pulse shaper pulse shaper sw reset pulse shaper delay 32 mstr_osc clocks pulse shaper por power-on reset (active low) external reset in (active low) cop (active low) reset delay 64 mstr_osc clocks delay blocks assert immediately and deassert only after the programmed number of clock cycles. combined_rst
56f8013/56f8011 data sheet, rev. 10 82 freescale semiconductor preliminary 6.7 clocks the memory, peripheral and core cl ocks all operate at the same fr equency (32mhz max) with the exception of the tmr and pw m peripheral clocks, whic h have the option (using tcr and pcr) to operate three times faster. th e sim is responsible for stalling individual clocks as a response to various hold-off requests, low power modes, and ot her configuration para meters. the sim has access to the following signals from the occs module: while the sim generates the adc peripheral clock in th e same way it generates al l other peripheral clocks, the adc standby and conversion cloc ks are generated by a direct in terface between the adc and the occs module. figure 6-16 illustrates clock relationships to one another and to the various resets as the device comes out of reset. rst is assumed to be the logical and of all active-low system rese ts (for example, por, external reset, cop and software reset). in the 56f8013/56f8011 architecture, this signal will be stretched by the sim for a period of time (up to 96 mstr_osc clock cycles, dependi ng upon the status of the por) to create the clock generation reset signal (clkgen_rst ). the sim should deassert clkgen_rst synchronously with the negative edge of osc_clk in order to avoid skew problems. clkgen_rst is delayed 32 sys_clk cycles to create the peripheral reset signal (perip_rst ). perip_rst is then delayed by 32 sys_clk cycles to create core_rst . both perip_rst and core_rst should be released on the negative edge of sys_clk_d as shown. this phased releasing of system resets is necessary to give some peripherals (for example, the flash interface unit) set-up time prior to the 56800e core becoming active. mstr_osc this comes from the i nput clock source mux of the occs. it is the output of the relaxation oscillator or the external clock source, depending on precs. it is not guaranteed to be at 50% duty cycle (+ or - 10% can probably be assumed for design purposes). this clock runs continuously, ev en during resetm and is used for reset generation. hs_perf the pll multiplies the mstr_osc by 24, to a maximu m of 192mhz. the zsrc field in occs selects the active source to be the pll. this is divided by 2 and postscaled to produce this maximum 96mhz cl ock. it is used with out further division to produce the high-speed (3x system bus rate) variants of the tmr and pwm peripheral clocks. this clock is disabl ed when zsrc is selecting mstr_osc. sys_clk_x2 the pll can multiply the mstr_osc by 24, to a maximum of 192mhz. when the pll is selected by the occs zsrc field, th e pll is divided by three and postscaled to produce this maximum 64mhz clock. wh en mstr_osc is selected by the occs zsrc field, mstr_osc feeds sys_clk_x2 directly. the sim takes this clock and divides it by two to generate all the normal (1x system bus rate) peripheral and system clocks.
interrupts 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 83 preliminary figure 6-16 timing relationships of reset signal to clocks 6.8 interrupts the sim generates no interrupts. part 7 security features the 56f8013/56f8011 offer security fe atures intended to prevent unauthorized users from reading the contents of the flash memory (f m) array. the 56f8013/56f8011?s flash security consists of several hardware interlocks that prevent unauthorized users from gaining access to the flash array. note, however, that part of the security must lie with the user?s code. an extreme exam ple would be user?s code that includes a subroutine to re ad and transfer the contents of th e internal program to sci, spi or another peripheral, as this code would defeat the pur pose of security. at the sa me time, the user may also wish to put a ?backdoor? in his progr am. as an example, the user dow nloads a security key through the sci, allowing access to a programming routine that update s parameters stored in another section of the flash. rst mstr_osc ckgen_rst sys_clk_x2 sys_clk sys_clk_d sys_clk_div2 perip_rst core_rst switch on falling osc_clk 96 mstr_osc cycles switch on falling sys_clk 32 sys_clk cycles delay 32 sys_clk cycles delay maximum delay = 64 mstr_osc cycles for por reset extensi on and 32 mstr_osc cycles for combined reset extension switch on falling sys_clk
56f8013/56f8011 data sheet, rev. 10 84 freescale semiconductor preliminary 7.1 operation with security enabled once the user has programme d the flash with his a pplication code, the 56f 8013/56f8011 can be secured by programming the secur ity bytes located in the fm configuration field, which are located at the last nine words of program flash. these non-volatile bytes wi ll keep the part secure d through reset and through power-down of the device. only two byt es within this field are used to enable or disable security. refer to the flash memory chapter in the 56f801x peripheral user manual for the state of the security bytes and the resulting state of security. when flash secur ity mode is enabled in accordance with the method described in the flash memory module chapter, the 56f8013/56f8011 will disabl e the core eonce debug capabilities. normal program ex ecution is otherwise unaffected. 7.2 flash access lock and unlock mechanisms the 56f8013/56f8011 have several opera ting functional and debug modes. effective flash security must address operating mode sele ction and anticipate modes in which the on-chip flash can be read without explicit user permission. 7.2.1 disabling eonce access on-chip flash can be read by issui ng commands across the eonce port, which is the debug interface for the 56800e cpu. the tclk, tms, tdo, and tdi pi ns comprise a jtag interface onto which the eonce port functionality is mapped. when the 56f 8013/56f8011 boot, the chip-level jtag tap (test access port) is active and provides the chip?s boundary scan capability and access to the id register, but proper implementation of flash security will bloc k any attempt to access the internal flash memory via the eonce port when security is enabled. 7.2.2 flash lockout recovery using jtag if a user inadvertently enables security on th e 56f8013/56f8011, the only lockout recovery mechanism is the complete erasure of the internal flash contents , including the configurati on field, and thus disables security (the protectio n register is cleared). this does not compromise securit y, as the entire contents of the user?s secured code stored in flash are erased before s ecurity is disabled on the 56f8013/56f8011 on the next reset or power-up sequence. to start the lockout recovery sequence, the jtag public inst ruction (lockout_recovery) must first be shifted into the chip-level tap c ontroller?s instruction register. once the lockout_recovery instruction has be en shifted into the instruction register, the clock divider value must be shifted into the co rresponding 7-bit data register. after the da ta register has been updated, the user must transition the tap c ontroller into the run-test/ idle state for the lockout sequence to commence. the controller must remain in this state until the erase seque nce has completed. refer to the 56f801x peripheral user manual for more details, or contact freescale. note: once the lockout recovery sequence has completed, the user must reset both the jtag tap controller (by advancing the tap state machine to the reset state) and the 56f8013/56f8011 (by asserting external chip reset) to return to normal unsecured operation.
introduction 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 85 preliminary 7.2.3 flash lockout recovery using codewarrior codewarrior can unlock a de vice using the command se quence described in sect ion 7.2.2 by selecting the debug menu, then selecting dsp56800e , followed by unlock flash . another mechanism is also built in to codewarrior using the device?s memory configuration file. the command ? unlock_flash_on_connect1 ? in the . cfg file accomplishes the same task as using the debug menu. 7.2.4 product analysis the recommended method of unsecu ring a programmed 56f8013/ 56f8011 for product analysis of field failures is via the backdoor ke y access. the customer would need to s upply technical support with the backdoor key and the protocol to access the backdoor routine in the flash. additionally, the keyen bit that allows backdoor ke y access must be set. an alternative method for performing analysis on a s ecured microcontroller woul d be to mass-erase and reprogram the flash with the original code, but modify the security bytes. to insure that a customer doe s not inadvertently lock hims elf out of the 56f8013/56f8011 during programming, it is recommended that the user program the backdoor acce ss key first, the application code second and the security bytes within the fm configuration field last. part 8 general purpose input/output (gpio) 8.1 introduction this section is intended to supplemen t the gpio information found in the 56f801x peripheral user manual and contains only chip-specific information. this information supe rcedes the generic information in the 56f801x peripheral user manual . 8.2 configuration there are four gpio ports de fined on the 56f8013/56f8011. the width of each port, the associated peripheral and reset f unctions are shown in table 8-1 . the specific mapping of gp io port pins is shown in table 8-2 .
56f8013/56f8011 data sheet, rev. 10 86 freescale semiconductor preliminary table 8-1 gpio ports configuration gpio port available pins in 56f8013/56f8011 peripheral function reset function a8 pwm, reset gpio, except gpioa7 b8 spi, sci, timer gpio c6 adc (gpioc3 and gpioc7 are not bonded out on the 56f8013/56f8011) analog d4 jtag jtag table 8-2 gpio external signals map pins in shaded rows are not available in 56f8013/56f8011 gpio function peripheral function lqfp package pin notes gpioa0 pwm0 29 defaults to a0 gpioa1 pwm1 28 defaults toa1 gpioa2 pwm2 23 defaults to a2 gpioa3 pwm3 24 defaults to a3 gpioa4 pwm4 / fault1 / t2 22 sim regi ster sim_gps is used to select between pwm4, fault1, and t2 defaults to a4 gpioa5 pwm5 / fault2 / t3 20 sim regi ster sim_gps is used to select between pwm5, fault2, and t3 defaults to a5 gpioa6 fault0 18 defaults to a6 gpioa7 reset 15 defaults to reset gpiob0 sclk / scl 21 sim register sim_gps is used to select between sclk and scl defaults to b0 gpiob1 ss / sda 2 sim register sim_gps is used to select between ss and sda defaults to b1 gpiob2 miso / t2 17 sim register sim_gps is used to select between miso and t2 defaults to b2 gpiob3 mosi / t3 16 sim register sim_gps is used to select between mosi and t3 defaults to b3
reset values 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 87 preliminary 8.3 reset values tables 4-18 through 4-21 detail registers for the 56f8013/56f8011; figures 8-1 through 8-4 summarize register maps and reset values. gpiob4 t0 / clko 19 sim register sim_gps is used to select between t0 and clko defaults to b4 gpiob5 t1 / fault3 4 sim register sim_gps is used to select between t1 and fault3 defaults to b5 gpiob6 rxd / sda / clkin 1 sim regist er sim_gps is used to select between rxd and sda. clkin functionality is enabled using the pll control register within the occs block. defaults to b6 gpiob7 txd / scl 3 sim register sim_gps is used to select between txd and scl defaults to b7 gpioc0 ana0 12 defaults to ana0 gpioc1 ana1 11 defaults to ana1 gpioc2 ana2 / v refh 10 defaults to ana2 gpioc3 ana3 not bonded out in 56f8013/56f8011 defaults to ana3 gpioc4 anb0 5 defaults to anb0 gpioc5 anb1 6 defaults to anb1 gpioc6 anb2 / v refl 7 defaults to anb2 gpioc7 anb3 not bonded out in 56f8013/56f8011 defaults to anb3 gpiod0 tdi 30 defaults to tdi gpiod1 tdo 32 defaults to tdo gpiod2 tck 14 defaults to tck gpiod3 tms 31 defaults to tms table 8-2 gpio external signals map (continued) pins in shaded rows are not available in 56f8013/56f8011 gpio function peripheral function lqfp package pin notes
56f8013/56f8011 data sheet, rev. 10 88 freescale semiconductor preliminary figure 8-1 gpioa register map summary add. offset register acronym 151413121110987654321 0 $0 gpioa_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpioa_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 01111111 $2 gpioa_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpioa_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 10000000 $4 gpioa_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpioa_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpioa_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpioa_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpioa_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpioa_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpioa_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpioa_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
reset values 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 89 preliminary figure 8-2 gpiob register map summary add. offset register acronym 151413121110987654321 0 $0 gpiob_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpiob_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 11111111 $2 gpiob_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpiob_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 00000000 $4 gpiob_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpiob_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpiob_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpiob_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpiob_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpiob_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpiob_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpiob_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
56f8013/56f8011 data sheet, rev. 10 90 freescale semiconductor preliminary figure 8-3 gpioc register map summary add. offset register acronym 151413121110987654321 0 $0 gpioc_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpioc_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 00000000 $2 gpioc_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpioc_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 11111111 $4 gpioc_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpioc_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpioc_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpioc_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpioc_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpioc_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpioc_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpioc_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
reset values 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 91 preliminary figure 8-4 gpiod register map summary add. offset register acronym 151413121110987654321 0 $0 gpiod_pupen r 0 0 0 0 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $1 gpiod_data r 0 0 0 0 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $2 gpiod_ddir r 0 0 0 0 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $3 gpiod_peren r 0 0 0 0 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $4 gpiod_iassrt r 0 0 0 0 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $5 gpiod_ien r 0 0 0 0 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $6 gpiod_iepol r 0 0 0 0 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $7 gpiod_ipend r 0 0 0 0 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $8 gpiod_iedge r 0 0 0 0 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $9 gpiod_ppoutm r 0 0 0 0 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $a gpiod_rdata r 0 0 0 0 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x x x x x xxxx $b gpiod_drive r 0 0 0 0 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 r 0 read as 0 w reserved rs reset
56f8013/56f8011 data sheet, rev. 10 92 freescale semiconductor preliminary part 9 joint test action group (jtag) 9.1 56f8013/56f8011 information please contact your freescale sales representative or authorized distributor fo r device/package-specific bsdl information. the trst pin is not available in this package. the pin is tied to v dd in the package. the jtag state machine is reset during por and can also be reset via a soft reset by holding tms high for five rising edges of tck, as described in the 56f801x peripheral user manual . part 10 specifications 10.1 general characteristics the 56f8013/56f8011 are fabricated in high-density cmos with 5v-t olerant ttl-compatible digital inputs. the term ?5v-tolerant? refers to the capabili ty of an i/o pin, built on a 3.3v-compatible process technology, to withstand a voltage up to 5.5v without damaging the devi ce. many systems have a mixture of devices designed for 3.3v and 5v power supplies. in such systems, a bus may carry both 3.3v- and 5v-compatible i/o voltage levels (a standard 3.3v i/o is designed to receive a maximum voltage of 3.3v 10% during normal operation without causing damage). this 5v-tolerant capability therefore offers the power savings of 3.3v i/o levels, combined with th e ability to receive 5v levels without damage. absolute maximum ratings in table 10-1 are stress ratings only, and f unctional operation at the maximum is not guaranteed. stress beyond these ratings may affect device reliabi lity or cause permanent damage to the device. unless otherwise stated, all specificati ons within this chapter apply over the temperature range of -40oc to 125oc ambient temperature over the following supply ranges: v ss =v ssa =0v,v dd =v dda = 3.0?3.6v, cl < 50pf, f op = 32mhz note: the 56f8011 device is specified to meet industrial requirements only. caution this device contains protective circuitry to guard against damage due to high static voltage or electrical fields. however, normal precautions are advised to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate voltage level.
general characteristics 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 93 preliminary default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs 10.1.1 electrostatic discharge (esd) model table 10-1 absolute maximum ratings (v ss = 0v, v ssa = 0v) characteristic symbol notes min max unit supply voltage range v dd -0.3 4.0 v analog supply voltage range v dda - 0.3 4.0 v adc high voltage reference v refh - 0.3 4.0 v voltage difference v dd to v dda v dd - 0.3 0.3 v voltage difference v ss to v ssa v ss - 0.3 0.3 v input voltage range (digital inputs) v in pin groups 1, 2 - 0.3 6.0 v input voltage range (adc inputs) 1 1. pin group 3 can tolerate 6v for less than 5 seconds when they are configured as adc inputs or during reset. pin group 3 can tolerate 6v if they are configured as gpio. v ina pin group 3 - 0.3 4.0 v input clamp current, per pin (v in < 0) 2 2. continuous input current per pin is -2 ma v ic --20ma output clamp current, per pin (v o < 0) 2 v oc --20ma output voltage range (normal push-pull mode) v out pin group 1 -0.3 4.0 v output voltage range (open drain mode) v outod pin groups 1, 2 -0.3 6.0 v ambient temperature t a -40 105 c storage temperature t stg -55 150 c table 10-2 56f8013/56f 8011 esd protection characteristic min typ max unit esd for human body model (hbm) 2000 ? ? v esd for machine model (mm) 200 ? ? v esd for charge device model (cdm) 750 ? ? v
56f8013/56f8011 data sheet, rev. 10 94 freescale semiconductor preliminary 1. junction temperature is a function of die size, on-chip power dissipation, package thermal resistance, mounting site (board) temperature, ambient temperature, air flow, power dissipation of other components on the board, and board thermal resistance. 2. per semi g38-87 and je dec jesd51-2 with the single layer board horizontal. 3. per jedec jesc51-6 with the board horizontal. 4. thermal resistance between the die and the printed circuit bo ard per jedec jesd51-8. board temperature is measured on the top surface of the board near the package. 5. thermal resistance between the die and the case top surface as measured by the cold plate method (mil spec-883 method 1012.1). 6. thermal characterization parameter indicating the temperat ure difference between package top and the junction temperature pe r jedec jesd51-2. when greek letters are not available, the t hermal characterization parameter is written as psi-jt. 7. see section 12.1 for more details on thermal design considerations. table 10-3 lqfp package thermal characteristics 6 characteristic comments symbol value (lqfp) unit notes junction to ambient natural convection single layer board (1s) r ja 74 c/w 1,2 junction to ambient natural convection four layer board (2s2p) r jma 50 c/w 1,3 junction to ambient (@200 ft/min) single layer board (1s) r jma 67 c/w 1,3 junction to ambient (@200 ft/min) four layer board (2s2p) r jma 46 c/w 1,3 junction to board r jb 23 c/w 4 junction to case r jc 20 c/w 5 junction to package top natural convection jt 4c/w6
general characteristics 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 95 preliminary note: total chip source or sink current cannot exceed 50ma default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs table 10-4 recommended operating conditions (v refl = 0v, v ssa = 0v, v ss = 0v ) characteristic symbol notes min typ max unit supply voltage v dd 33.3 3.6 v adc supply voltage v dda 33.3 3.6 v adc high voltage reference v refh 3?v dda v voltage difference v dd to v dda v dd -0.1 0 0.1 v voltage difference v ss to v ssa v ss -0.1 0 0.1 v device clock frequency using relaxation oscillator using external clock source fsysclk 8 0 ? 32 32 mhz input voltage high (digital inputs) v ih pin groups 1, 2 2 ? 5.5 v input voltage low (digital inputs) v il pin groups 1, 2 -0.3 ? 0.8 v output source current high (at v oh min.) when programmed for low drive strength when programmed for high drive strength i oh pin group 1 pin group 1 ? ? ? ? -4 -8 ma output source current low (at v ol max.) when programmed for low drive strength when programmed for high drive strength i ol pin groups 1, 2 pin groups 1, 2 ? ? ? ? 4 8 ma ambient operating temperature t a -40 ? 105 c flash endurance (program erase cycles) n f t a = -40c to 105c 10,000 ? ? cycles flash data retention t r t j <= 85c avg 15 ? ? years flash data retention with <100 program/erase cycles t flret t j <= 85c avg 20 ? ? years
56f8013/56f8011 data sheet, rev. 10 96 freescale semiconductor preliminary 10.2 dc electrical characteristics default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs figure 10-1 i in /i oz vs. v in (typical; pull-up disabled) table 10-5 dc electr ical characteristics at recommended operating conditions characteristic symbol notes min typ max unit test conditions output voltage high v oh pin group 1 2.4 ? ? v i oh = i ohmax output voltage low v ol pin groups 1, 2 ? ? 0.4 v i ol = i olmax digital input current high pull-up enabled or disabled 1 1. see figure 10-1 i ih pin groups 1, 2 ? 0 +/- 2.5 av in = 2.4v to 5.5v digital input current low pull-up enabled pull-up disabled 1 i il pin groups 1, 2 -15 ? -30 0 -60 +/- 2.5 av in = 0v output current high impedance state 1 i oz pin groups 1, 2 ? 0 +/- 2.5 av out = 2.4v to 5.5v or 0v schmitt trigger input hysteresis v hys pin groups 1, 2 ? 0.35 ? v ? input capacitance c in ?10 ? pf ? output capacitance c out ?10 ? pf ? 2.0 0.0 - 2.0 - 4.0 - 6.0 - 8.0 - 10.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 6.0 3.54.04.55.05.5 a volt
dc electrical characteristics 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 97 preliminary table 10-6 current consumption pe r power supply pin (typical) mode conditions typical @ 3.3v, 25c maximum@ 3.6v, 25c i dd 1 1. no output switching all ports configured as inputs all inputs low no dc loads i dda i dd 1 i dda run 32mhz device clock relaxation oscillator on pll powered on continuous mac instructions with fetches from program flash all peripheral modules enabled. tmr and pwm using 1x clock adc powered on and clocked 42ma 13.5ma ? ? wait 32mhz device clock relaxation oscillator on pll powered on processor core in wait state all peripheral modules enabled. tmr and pwm using 1x clock adc powered off 17ma 0 a? ? stop 4mhz device clock relaxation oscillator on pll powered off processor core in stop state all peripheral module and core clocks are off adc powered off 5ma 0 a? ? standby > stop 100khz device clock relaxation oscillator in standby mode pll powered off processor core in stop state all peripheral module and core clocks are off adc powered off voltage regulator in standby mode 430 a0 a 550 a1 a power- down device clock is off relaxation oscillator powered off pll powered off processor core in stop state all peripheral module and core clocks are off adc powered off voltage regulator in standby mode 300 a0 a 400 a1 a
56f8013/56f8011 data sheet, rev. 10 98 freescale semiconductor preliminary 10.2.1 voltage regulator specifications the 56f8013/56f8011 have two on-chip regulators. one s upplies the pll and relaxa tion oscillator. it has no external pins and therefore has no external characteristics which must be guaranteed (other than proper operation of the device). the second regulator s upplies approximately 2.5v to the 56f8013/56f8011?s core logic. this regulator requires an external 4.4 f, or greater, capacitor for proper operation. ceramic and tantalum capacitors tend to provide better performance tole rances. the output voltage can be measured directly on the v cap pin. the specifications for this regulator are shown in table 10-8 . 10.3 ac electrical characteristics tests are conducted using the input levels specified in table 10-5 . unless otherwise specified, propagation delays are measured fr om the 50% to the 50% point, and rise and fall times are measured between the 10% and 90% points, as shown in figure 10-2 . table 10-7 power-on reset low-voltage parameters characteristic symbol min typ max unit low-voltage interrupt for 3.3v supply 1 1. when v dd drops below v ei3.3 , an interrupt is generated. v ei3.3 2.58 2.7 ? v low-voltage interrupt for 2.5v supply 2 2. when v dd drops below v ei32.5 , an interrupt is generated. v e12.5 ?2.15? v low-voltage interrupt recovery hysteresis v eih ?50?mv power-on reset 3 3. power-on reset occurs whenever the internally regulated 2.5v digital supply drops below 1.8v. while power is ramping up, this signal remains active for as long as the internal 2.5v is below 2.15v or the 3.3v 1/o voltage is below 2.7v, no matter how long the ramp-up rate is. the internally regulated voltage is typically 100mv less than v dd during ramp-up until 2.5v is reached, at which time it self-regulates. por ? 1.8 1.9 v table 10-8. regulator parameters characteristic symbol min typical max unit short circuit current i ss ? 450 650 ma short circuit tolerance (output shorted to ground) t rsc ? ? 30 minutes
flash memory characteristics 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 99 preliminary figure 10-2 input signal measurement references figure 10-3 shows the definitions of the following signal states: ? active state, when a bus or signal is driven, and enters a low impedance state ? tri-stated, when a bus or signal is placed in a high impedance state ? data valid state, when a signal level has reached v ol or v oh ? data invalid state, when a signal level is in transition between v ol and v oh figure 10-3 signal states 10.4 flash memory characteristics table 10-9 flash timing parameters characteristic symbol min typ max unit program time 1 1. there is additional overhead which is par t of the programming sequence. see the 56f801x peripheral user manual for details. t prog 20 ? 40 s erase time 2 2. specifies page erase time. there are 512 by tes per page in the program flash memory. t erase 20 ? ? ms mass erase time t me 100 ? ? ms v ih v il fall time input signal note: the midpoint is v il + (v ih ? v il )/2. midpoint1 low high 90% 50% 10% rise time data invalid state data1 data2 valid data tri-stated data3 valid data2 data3 data1 valid data active data active
56f8013/56f8011 data sheet, rev. 10 100 freescale semiconductor preliminary 10.5 external clock operation timing figure 10-4 external clock timing 10.6 phase locked loop timing table 10-10 external clock op eration timing requirements 1 1. parameters listed are guaranteed by design. characteristic symbol min typ max unit frequency of operation (external clock driver) 2 2. see figure 10-4 for details on using the recommended connection of an external clock driver. f osc 488mhz clock pulse width 3 3. the high or low pulse width must be no smaller than 6.25ns or the chip may not function. t pw 6.25 ? ? ns external clock input rise time 4 4. external clock input rise time is measured from 10% to 90%. t rise ?? 3ns external clock input fall time 5 5. external clock input fall time is measured from 90% to 10%. t fall ?? 3ns table 10-11 pll timing characteristic symbol min typ max unit internal reference relaxation oscillator frequency for the pll f rosc ?8?mhz pll output frequency 1 (24 x reference frequency) 1. the core system clock will operate at 1/6 of the pll output frequency. f op ?192?mhz pll lock time 2 2. this is the time required after the pll is enabled to ensure reliable operation. t lock ? 40 100 s cycle-to-cycle jitter t jitterpll 350 ps external clock v ih v il note: the midpoint is v il + (v ih ? v il )/2. 90% 50% 10% 90% 50% 10% t pw t pw t fall t rise
relaxation oscillator timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 101 preliminary 10.7 relaxation oscillator timing table 10-12 relaxation oscillator timing characteristic symbol minimum typical maximum unit relaxation oscillator output frequency 1 normal mode standby mode 1. output frequency after application of 8mhz trim value, at 125c. f op ? 8.05 200 ? mhz khz relaxation oscillator stabilization time 2 2. this is the time required from standby to normal mode transition. t roscs ?1 3s cycle-to-cycle jitter. this is measured on the clko signal (program med prescaler_clock) over 264 clocks 3 3. j a is required to meet sci requirements. t jitterrosc ?400 ps minimum tuning step size .08 % maximum tuning step size 40 % variation over temperature ?40 c to 150 c 4 4. see figure 10-5 . +1.0 to ?1.5 +3.0 to ?3.0 % variation over temperature 0 c to 105 c 4 0 to +1 +2.0 to ?2.0 % variation over temperature ?40 c to 150 c 4 (mc56f8013mfae) +1.0 to -1.5 +3.0 to ?4.5 %
56f8013/56f8011 data sheet, rev. 10 102 freescale semiconductor preliminary figure 10-5 relaxation oscillator temperature variation (typical) af ter trim at 125c 10.8 reset, stop, wait, mode select, and interrupt timing note: all the address and data bus es described here are internal. table 10-13 reset, stop, wait, mode select, and interrupt timing 1,2 1. in the formulas, t = clock cycle and t osc = oscillator clock cycle. for an operating frequency of 32mhz, t = 31.25ns. at 8mhz (used during reset and stop modes), t = 125ns. 2. parameters listed are guaranteed by design. characteristic symbol typical min typical max unit see figure minimum reset assertion duration t ra 4t ? ns minimum gpio pin assertion for interrupt t iw 2t ? ns 10-6 reset deassertion to first address fetch 3 3. during power-on reset, it is possible to use the 56f8013/56f8011 internal reset stretching circuitry to extend this period to 2^21t. t rda 96t osc + 64t 97t osc + 65t ns delay from interrupt assertion to fetch of first instruction (exiting stop) t if ?6tns 8.16 8.08 8 7.92 7.84 175 -25 -50 0 50 75 100 125 150 25 degrees c (junction) mhz
reset, stop, wait, mode select, and interrupt timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 103 preliminary figure 10-6 gpio interrupt timi ng (negative edge-sensitive) gpio pin (input) t iw
56f8013/56f8011 data sheet, rev. 10 104 freescale semiconductor preliminary 10.9 serial peripheral interface (spi) timing table 10-14 spi timing 1 1. parameters listed are guaranteed by design. characteristic symbol min max unit see figure cycle time master slave t c 125 62.5 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 enable lead time master slave t eld ? 31 ? ? ns ns 10-10 enable lag time master slave t elg ? 125 ? ? ns ns 10-10 clock (sck) high time master slave t ch 50 31 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 clock (sck) low time master slave t cl 50 31 ? ? ns ns 10-10 data set-up time required for inputs master slave t ds 20 0 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 data hold time required for inputs master slave t dh 0 2 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 access time (time to data active from high-impedance state) slave t a 4.8 15 ns 10-10 disable time (hold time to high-impedance state) slave t d 3.7 15.2 ns 10-10 data valid for outputs master slave (after enable edge) t dv ? ? 4.5 20.4 ns ns 10-7 , 10-8 , 10-9 , 10-10 data invalid master slave t di 0 0 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 rise time master slave t r ? ? 11.5 10.0 ns ns 10-7 , 10-8 , 10-9 , 10-10 fall time master slave t f ? ? 9.7 9.0 ns ns 10-7 , 10-8 , 10-9 , 10-10
serial peripheral interface (spi) timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 105 preliminary 1 figure 10-7 spi master timing (cpha = 0) sclk (cpol = 0) (output) sclk (cpol = 1) (output) miso (input) mosi (output) msb in bits 14?1 lsb in t f t c t cl t cl t r t r t f t ds t dh t ch t di t dv t di (ref) t r master msb out bits 14?1 master lsb out ss (input) t ch ss is held high on master t f
56f8013/56f8011 data sheet, rev. 10 106 freescale semiconductor preliminary figure 10-8 spi master timing (cpha = 1) figure 10-9 spi slave timing (cpha = 0) sclk (cpol = 0) (output) sclk (cpol = 1) (output) miso (input) mosi (output) msb in bits 14?1 lsb in t r t c t cl t cl t f t ch t dv (ref) t dv t di (ref) t r t f master msb out bits 14? 1 master lsb out ss (input) t ch ss is held high on master t ds t dh t di t r t f sclk (cpol = 0) (input) sclk (cpol = 1) (input) miso (output) mosi (input) slave msb out bits 14?1 t c t cl t cl t f t ch t di msb in bits 14?1 lsb in ss (input) t ch t dh t r t elg t eld t f slave lsb out t d t a t ds t dv t di t r
quad timer timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 107 preliminary figure 10-10 spi slave timing (cpha = 1) 10.10 quad timer timing table 10-15 timer timing 1, 2 1. in the formulas listed, t = the clock cycle. for 32mhz operation, t = 31.25ns. 2. parameters listed are guaranteed by design. characteristic symbol min max unit see figure timer input period p in 2t + 6 ? ns 10-11 timer input high / low period p inhl 1t + 3 ? ns 10-11 timer output period p out 125 ? ns 10-11 timer output high / low period p outhl 50 ? ns 10-11 sclk (cpol = 0) (input) sclk (cpol = 1) (input) miso (output) mosi (input) slave msb out bits 14?1 t c t cl t cl t ch t di msb in bits 14?1 lsb in ss (input) t ch t dh t f t r slave lsb out t d t a t eld t dv t f t r t elg t dv t ds
56f8013/56f8011 data sheet, rev. 10 108 freescale semiconductor preliminary figure 10-11 timer timing p out p outhl p outhl p in p inhl p inhl timer inputs timer outputs
serial communication interface (sci) timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 109 preliminary 10.11 serial communication interface (sci) timing figure 10-12 rxd pulse width figure 10-13 txd pulse width table 10-16 sci timing 1 1. parameters listed are guaranteed by design. characteristic symbol min max unit see figure baud rate 2 2. f max is the frequency of operation of the system clock in mhz, which is 32mhz for the 56f8013/56f8011 devices. br ? (f max /16) mbps ? rxd 3 pulse width 3. the rxd pin in sci0 is named rxd0 and the rxd pin in sci1 is named rxd1. rxd pw 0.965/br 1.04/br ns 10-12 txd 4 pulse width 4. the txd pin in sci0 is named txd0 and the txd pin in sci1 is named txd1. txd pw 0.965/br 1.04/br ns 10-13 lin slave mode deviation of slave node clock from nominal clock rate before synchronization f tol_unsynch -14 14 % deviation of slave node clock relative to the master node clock after synchronization f tol_synch -2 2 % minimum break character length t break 13 master node bit periods 11 slave node bit periods rxd pw rxd receive data pin (input) txd pw txd receive data pin (input)
56f8013/56f8011 data sheet, rev. 10 110 freescale semiconductor preliminary 10.12 inter-integrated circuit interface (i 2 c) timing table 10-17 i 2 c timing characteristic symbol standard mode fast mode unit minimum maximum minimum maximum scl clock frequency f scl 01000400khz hold time (repeated ) start condit ion. after this period, the first clock pulse is generated. t hd; sta 4.0 0.6 s low period of the scl clock t low 4.7 1.25 s high period of the scl clock t high 4.0 0.6 s set-up time for a repeated start condition t su; sta 4.7 0.6 s data hold time for i 2 c bus devices t hd; dat 0 1 1. a device must internally provide a hold time of at least 300ns for the sda signal (referred to the v ih min of the scl signal) to bridge the undefined region of the falling edge of scl. 3.45 2 2. the maximum t hd; dat has only to be met if the device does not stretch the low period (t low ) of the scl signal. 0 1 0.9 2 s data set-up time t su; dat 250 100 3 3. a fast mode i 2 c bus device can be used in a standard mode i 2 c bus system, but the requirement t su; dat > = 250ns must then be met. this will automatically be the case if the device does not stretch the low period of the scl signal. if such a device does stretch the low period of the scl signal, it must output the next data bit to the sda line t rmax + t su; dat = 1000 + 250 = 1250ns (according to the standard mode i 2 c bus specification) before the scl line is released. ns rise time of both sda and scl signals t r 1000 2 +0.1c b 4 4. c b = total capacitance of the one bus line in pf. 300 ns fall time of both sda and scl signals t f 300 2 +0.1c b 4 300 ns set-up time for stop condition t su; sto 4.0 0.6 s bus free time between stop and start condition t buf 4.7 1.3 s pulse width of spikes that must be suppressed by the input filter t sp n/a n/a 0.0 50 ns
jtag timing 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 111 preliminary figure 10-14 timing definiti on for fast and standard mode devices on the i 2 c bus 10.13 jtag timing figure 10-15 test clo ck input timing diagram table 10-18 jtag timing characteristic symbol min max unit see figure tck frequency of operation 1 1. tck frequency of operation must be less than 1/8 the processor rate. f op dc sys_clk/8 mhz 10-15 tck clock pulse width t pw 50 ? ns 10-15 tms, tdi data set-up time t ds 5?ns 10-16 tms, tdi data hold time t dh 5?ns 10-16 tck low to tdo data valid t dv ?30ns 10-16 tck low to tdo tri-state t ts ?30ns 10-16 sda scl t hd; sta t hd; dat t low t su; dat t high t su; sta br p s s t hd; sta t sp t su; sto t buf tck (input) v m v il v m = v il + (v ih ? v il )/2 t pw 1/f op t pw v m v ih
56f8013/56f8011 data sheet, rev. 10 112 freescale semiconductor preliminary figure 10-16 test access port timing diagram input data valid output data valid t ds t dh t dv t ts tck (input) tdi (input) tdo (output) tdo (output ) tms
analog-to-digital converter (adc) parameters 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 113 preliminary 10.14 analog-to-digital converter (adc) parameters table 10-19 adc parameters 1 1. all measurements were made at v dd = 3.3v, v refh = 3.3v, and v refl = ground parameter symbol min typ max unit dc specifications resolution r es 12 ? 12 bits adc internal clock f adic 0.1 ? 5.33 mhz conversion range r ad v refl ?v refh v adc power-up time 2 2. includes power-up of adc and v ref t adpu ?6 13 t aic cycles 3 3. adc clock cycles recovery from auto standby t rec ?0 1 t aic cycles 3 conversion time t adc ?6 ? t aic cycles 3 sample time t ads ?1 ? t aic cycles 3 accuracy integral non-linearity 4 (full input signal range) 4. inl measured from v in = v refl to v in = v refh inl ? +/- 3 +/- 5 lsb 5 differential non-linearity dnl ? +/- .6 +/- 1 lsb 5 monotonicity guaranteed offset voltage internal ref v offset ? +/- 4 +/- 9 mv offset voltage external ref v offset ? +/- 6 +/- 12 mv gain error (transfer gain) e gain ? .998 to 1.002 1.01 to .99 ? adc inputs 6 (pin group 3) input voltage (external reference) v adin v refl ?v refh v input voltage (internal reference) v adin v ssa ?v dda v input leakage i ia ?0 +/- 2 a v refh current i vrefh ?0 ? a input injection current 7 , per pin i adi ?? 3ma input capacitance c adi ? see figure 10-17 ?pf input impedance x in ? see figure 10-17 ?ohms ac specifications signal-to-noise ratio snr 60 65 db total harmonic distortion thd 60 64 db spurious free dynamic range sfdr 61 66 db signal-to-noise plus distortion sinad 58 62 db effective number of bits enob ? 10.0 bits
56f8013/56f8011 data sheet, rev. 10 114 freescale semiconductor preliminary 10.15 equivalent circuit for adc inputs figure 10-17 illustrates the adc input circ uit during sample and hold. s1 and s2 are always open/closed at the same time that s3 is clos ed/open. when s1/s2 are closed & s3 is open, one input of the sample and hold circuit moves to (v refh -v refl )/2, while the other charges to th e analog input voltage. when the switches are flipped, the charge on c1 and c2 are averaged via s3, wi th the result that a single-ended analog input is switched to a diff erential voltage centered about (v refh -v refl )/2. the switches switch on every cycle of the adc clock ( open one-half adc clock, cl osed one-half adc cloc k). note that there are additional capacitances associated with the analog input pad, routing, etc., but these do not filter into the s/h output voltage, as s1 provides is olation during the charge-sharing phase. one aspect of this circuit is that there is an on-going input current, which is a function of the analog input voltage, v ref and the adc clock frequency. 1. parasitic capacitance due to package, pin- to-pin and pin-to-package base coupling; 1.8pf 2. parasitic capacitance due to the chip bond pad, esd protection devices and signal routing; 2.04pf 3. equivalent resistance for the channel select mux; 100 ohms 4. sampling capacitor at the sample and hold circuit. capaci tor c1 is normally disconnected from the input and is only connected to it at sampling time; 1.4pf 5. equivalent input impedance, when the the input is selected = figure 10-17 equivalent ci rcuit for a/d loading 10.16 power consumption see section 10.1 for a list of idd requirements for the 56f8013/56f8011. this secti on provides additional detail which can be used to optimize pow er consumption for a given application. 5. lsb = least significant bit = 0.806mv 6. pin groups are detailed following table 10-1 . 7. the current that can be injected or sourced from an unselec ted adc signal input without impacting the performance of the adc. 1 2 3 analog input 4 s1 s2 s3 c1 c2 s/h c1 = c2 = 1pf (v refh - v refl )/ 2 125 esd resistor 8pf noise damping capacitor 1 (adc clock rate) x 1.4 x 10 -12
power consumption 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 115 preliminary power consumption is given by the following equation: a, the internal [static component], is comprised of the dc bias currents for the oscillator, leakage currents, pll, and voltage referen ces. these sources operate independent ly of processor state or operating frequency. b, the internal [state-dependent component], re flects the supply current required by certain on-chip resources only when those resources are in use. these include ram, flash memory and the adcs. c, the internal [dynamic component], is classic c*v 2 *f cmos power dissipation corresponding to the 56800e core and standard cell logic. d, the external [dynamic component], reflects power dissipated on-chip as a result of capacitive loading on the external pins of the chip. this is also commonly described as c*v 2 *f, although simulations on two of the i/o cell types used on the 56800e reveal that the power-versus-load curv e does have a non-zero y-intercept. power due to capacitive loading on output pins is (first order) a f unction of the capacitive load and frequency at which the outputs change. table 10-20 provides coefficients for calculating power dissipated in the i/o cells as a function of capacitive load. in these cases: totalpower = ((intercept + slope*cload)*frequency/10mhz) where: ? summation is performed over all ou tput pins with capacitive loads ? totalpower is expressed in mw ? cload is expressed in pf because of the low duty cycle on most device pins , power dissipation due to capacitive loads was found to be fairly low when averaged over a period of time. total power = a: interna l [static component] +b: internal [state-d ependent component] +c: internal [dynamic component] +d: external [dynamic component] +e: external [static] table 10-20 i/o loading coefficients at 10mhz intercept slope 8ma drive 1.3 0.11mw / pf 4ma drive 1.15mw 0.11mw / pf
56f8013/56f8011 data sheet, rev. 10 116 freescale semiconductor preliminary e, the external [static component], reflects the effects of placing resistive load s on the outputs of the device. sum the total of all v 2 /r or iv to arrive at the resistive load contribution to power. assume v = 0.5 for the purposes of these rough calculations. for instance, if there is a total of eight pwm outputs driving 10ma into leds, then p = 8*.5*.01 = 40mw. in previous discussions, power consum ption due to parasitics associated with pure input pins is ignored, as it is assumed to be negligible. please see http://www.freescale.com for th e most current mechanical drawing.
56f8013/56f8011 package and pin-out information 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 117 preliminary part 11 packaging 11.1 56f8013/56f8011 package and pin-out information this section contains package and pin-out info rmation for the 56f8013/56f8 011. these devices come in a 32-pin low-profile quad flat pack (lqfp). figure 11-1 shows the package outline for the 32-pin lqfp, figure 11-2 shows the mechanical parame ters for this package, and table 11-1 lists the pin-out for the 32-pin lqfp. figure 11-1 top view, 56f8013/ 56f8011 32-pin lqfp package orientation mark pin 25 pin 17 pin 9 gpiob6 / rxd/sda/clkin gpiob1 / ss /sda gpiob7 / txd/scl gpiob5 / t1/fault3 anb0 / gpioc4 anb1 / gpioc5 anb2 / v refl /gpioc6 v dda gpiob2 / miso/t2 gpioa6 / fault0 gpiob4 / t0/clko gpioa5 / pwm5/fault2/t3 gpiob0 / sclk/scl gpioa4 / pwm4/fault1/t2 gpioa2 / pwm2 gpioa3 / pwm3 gpioa1 / pwm1 v cap v ss v dd gpioa0 / pwm0 tdi / gpiod0 tms / gpiod3 tdo / gpiod1 v ssa ana2 / v refh / gpioc2 ana1 / gpioc1 ana0/ gpioc0 v ss tck / gpiod2 reset / gpioa7 gpiob3 / mosi/t3 note: alternate signals are in italic pin 1
56f8013/56f8011 data sheet, rev. 10 118 freescale semiconductor preliminary table 11-1 56f8013/56f8011 32- pin lqfp package identi fication by pin number 1 1.alternate signals are in iltalic pin no. signal name pin no. signal name pin no. signal name pin no. signal name 1 gpiob6 rxd,sda,clkin 9 v ssa 17 gpiob2 miso,t2 25 v cap 2 gpiob1 ss ,sda 10 ana2 v refh ,gpioc2 18 gpioa6 fault0 26 v dd 3 gpiob7 txd,scl 11 ana1 gpioc1 19 gpiob4 t0,clko 27 v ss 4 gpiob5 t1,fault3 12 ana0 gpioc0 20 gpioa5 pwm5,fault2,t3 28 gpioa1 pwm1 5 anb0 gpioc4 13 v ss 21 gpiob0 sclk,scl 28 gpioa0 pwm0 6 anb1 gpioc5 14 tck gpiod2 22 gpioa4 pwm4,fault1,t2 30 tdi gpiod0 7 anb2 v refl ,gpioc6 15 reset gpioa7 23 gpioa2 pwm2 31 tms gpiod3 8 v dda 16 gpiob3 mosi,t3 24 gpioa3 pwm3 32 tdo gpiod1
56f8013/56f8011 package and pin-out information 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 119 preliminary figure 11-2 56f8013/56f8011 32-pin lqfp mechanical information detail y a s1 v b 1 8 9 17 25 32 ae ae p detail y base n j d f metal section ae?ae g seating plane r q w k x 0.250 (0.010) gauge plane e c h detail ad notes: 1. dimensioning and tolerancing per ansi y14.5m, 1982. 2. controlling dimension: millimeter. 3. datum plane ?ab? is located at bottom of lead and is coincident with the lead where the lead exits the plastic body at the bottom of the parting line. 4. datums ?t?, ?u?, and ?z? to be determined at datum plane ?ab?. 5. dimensions s and v to be determined at seating plane ?ac?. 6. dimensions a and b do not include mold protrusion. allowable protrusion is 0.250 (0.010) per side. dimensions a and b do include mold mismatch and are determined at datum plane ?ab?. 7. dimension d does not include dambar protrusion. dambar protrusion shall not cause the d dimension to exceed 0.520 (0.020). 8. minimum solder plate thickness shall be 0.0076 (0.0003). 9. exact shape of each corner may vary from depiction. dim a min max min max inches 7.000 bsc 0.276 bsc millimeters b 7.000 bsc 0.276 bsc c 1.400 1.600 0.055 0.063 d 0.300 0.450 0.012 0.018 e 1.350 1.450 0.053 0.057 f 0.300 0.400 0.012 0.016 g 0.800 bsc 0.031 bsc h 0.050 0.150 0.002 0.006 j 0.090 0.200 0.004 0.008 k 0.500 0.700 0.020 0.028 m 12 ref 12 ref n 0.090 0.160 0.004 0.006 p 0.400 bsc 0.016 bsc q 1 5 1 5 r 0.150 0.250 0.006 0.010 v 9.000 bsc 0.354 bsc v1 4.500 bsc 0.177 bsc detail ad a1 b1 v1 4x s 4x b1 3.500 bsc 0.138 bsc a1 3.500 bsc 0.138 bsc s 9.000 bsc 0.354 bsc s1 4.500 bsc 0.177 bsc w 0.200 ref 0.008 ref x 1.000 ref 0.039 ref 9 ?t? ?z? ?u? t?u 0.20 (0.008) z ac t?u 0.20 (0.008) z ab 0.10 (0.004) ac ?ac? ?ab? m 8x ?t?, ?u?, ?z? t?u m 0.20 (0.008) z ac
56f8013/56f8011 data sheet, rev. 10 120 freescale semiconductor preliminary part 12 design considerations 12.1 thermal desi gn considerations an estimation of the chip junction temperature, t j , can be obtained from the equation: t j = t a + (r j x p d ) where: the junction-to-ambient thermal resi stance is an industry-standard va lue that provides a quick and easy estimation of thermal perf ormance. unfortunately, there are two values in common usage: the value determined on a single-layer board and the value obtained on a board wi th two planes. for packages such as the pbga, these values can be different by a factor of two. which value is closer to the application depends on the power dissipated by other components on the board. th e value obtained on a single layer board is appropriate for the tightly packed printed circuit board. the va lue obtained on the board with the internal planes is usually appropriate if the board has low-power dissipation and the components are well separated. when a heat sink is used, the thermal resistance is expressed as the sum of a junction-to-case thermal resistance and a case-to-ambient thermal resistance: r ja = r jc + r ca where: r jc is device related and ca nnot be influenced by the user. the user controls the thermal e nvironment to change the case to ambient thermal resistance, r ca . for instance, the user can change the size of the heat sink, the air flow around the device, the interface mate rial, the mounting arrange ment on printed circuit board, or change the thermal dissipation on th e printed circuit board surrounding the device. to determine the junction temperature of the device in the application when heat sinks are not used, the thermal characterization parameter ( jt ) can be used to determine th e junction temperature with a measurement of the temperature at the top center of the package case using the following equation: t j = t t + ( jt x p d ) where: t a = ambient temperature for the package ( o c) r j = junction-to-ambient thermal resistance ( o c/w) p d = power dissipation in the package (w) r ja = package junction-to-ambient thermal resistance (c/w) r jc = package junction-to-case thermal resistance (c/w) r ca = package case-to-ambient thermal resistance (c/w) t t = thermocouple temperature on top of package ( o c) jt = thermal characterization parameter ( o c/w)
thermal design considerations 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 121 preliminary p d = power dissipation in package (w)
56f8013/56f8011 data sheet, rev. 10 122 freescale semiconductor preliminary the thermal characterization parameter is measured per jesd51-2 specification using a 40-gauge type t thermocouple epoxied to the top ce nter of the package case. the th ermocouple should be positioned so that the thermocouple junction re sts on the package. a small amount of epoxy is placed over the thermocouple junction and over about 1mm of wire extending from the junction. the thermocouple wire is placed flat against the package case to avoid measurement errors caused by cooling effects of the thermocouple wire. when heat sink is used, the junction temperature is determined from a ther mocouple inserted at the interface between the case of the p ackage and the interface material. a clearance slot or hole is normally required in the heat sink. minimizing the size of the clearan ce is important to mi nimize the change in thermal performance caused by removing part of the thermal interface to the heat sink. because of the experimental difficulties with th is technique, many engine ers measure the heat si nk temperature and then back-calculate the case temperatur e using a separate measurement of the thermal resistance of the interface. from this case temperat ure, the junction temperature is de termined from th e junction-to-case thermal resistance. 12.2 electrical design considerations use the following list of cons iderations to assure correc t operation of the 56f8013/56f8011: ? provide a low-impedance path from the board power supply to each v dd pin on the 56f8013/56f8011 and from the board ground to each v ss (gnd) pin ? the minimum bypass requirement is to place 0.01?0.1 f capacitors positioned as close as possible to the package supply pins. the recommended bypass configura tion is to place one bypass capacitor on each of the v dd /v ss pairs, including v dda /v ssa. ceramic and tantalum capacito rs tend to provide better tolerances. ? ensure that capacitor leads and associated prin ted circuit traces that connect to the chip v dd and v ss (gnd) pins are as short as possible caution this device contains protective circuitry to guard against damage due to high static voltage or electrical fields. however, normal precautions are advised to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate voltage level.
electrical design considerations 56f8013/56f8011 data sheet, rev. 10 freescale semiconductor 123 preliminary ? bypass the v dd and v ss with approximately 100 f, plus the number of 0.1 f ceramic capacitors ? pcb trace lengths should be mini mal for high-frequency signals ? consider all device loads as well as parasitic capacitance due to pcb traces when calculating capacitance. this is especially critical in system s with higher capacitive loads that co uld create higher transient currents in the v dd and v ss circuits. ? take special care to minimize noise levels on the v ref , v dda and v ssa pins ? using separate power planes for v dd and v dda and separate ground planes for v ss and v ssa is recommended. connect the separate analog and digital power and ground planes as close as possible to power supply outputs. if both analog circuit and dig ital circuit are powered by the same power supply, it is advisable to connect a small inductor or ferrite bead in serial with both v dda and v ssa traces. ? it is highly desirable to physically separate analog components from noisy digital components by ground planes. do not place an analog trace in parallel with digital traces. it is also desirable to place an analog ground trace around an analog signal trace to isolate it from digital traces. ? because the flash memory is programmed through the jtag/eonce port, spi, sci or i 2 c, the designer should provide an interface to this port if in-circuit flash pr ogramming is desired.
56f8013/56f8011 data sheet, rev. 10 124 freescale semiconductor preliminary part 13 ordering information table 13-1 lists the pertinent information needed to pl ace an order. consult a freescale semiconductor sales office or authorized di stributor to determine availability and to order parts. *this package is rohs compliant. part 14 appendix register acronyms are revised from previous device data sheets to pr ovide a cleaner register description. a cross reference to legacy and revised acronyms are provided in the following table. table 13-1 56f8013/56f8011 ordering information part supply voltage package type pin count frequency (mhz) ambient temperature range order number mc56f8013 3.0?3.6 v low-profile quad flat pack (lqfp) 32 32 -40 to + 105c mc56f8013vfae* mc56f8011 3.0?3.6 v low-profile quad flat pack (lqfp) 32 32 -40 to + 105c mc56f8011vfae* module register name peripheral reference manual data sheet processor expert acronym memory address new acronym legacy acronym new acronym legacy acronym start end adc control register 1 ctrl1 adcr1 adc_ctrl1 adc_adcr1 adc_adcr1 0xf080 control register 2 ctrl2 adcr2 a dc_ctrl2 adc_adcr2 adc_adcr2 0xf081 zero crossing control register zxctrl adzcc adc_zxctrl adc_adzcc adc_adzcc 0xf082 channel list register 1 clist1 adlst1 adc_clist1 adc_adlst1 adc_adlst1 0xf083 channel list register 2 clist2 adlst2 adc_clist2 adc_adlst2 adc_adlst2 0xf084 sample disable register sdis adsdis adc_sdis adc_adsdis adc_adsdis 0xf085 status register stat adstat adc_stat adc_adstat adc_adstat 0xf086 limit status register limstat adlstat adc_limstat adc_adlstat adc_adlstat 0xf087 zero crossing status register zxstat adzcstat adc_zxstat adc_adzcstat adc_adzcstat 0xf088 result registers 0-7 rslt0-7 adrslt0-7 adc_rs lt0-7 adc_adrslt0-7 adc_adrslt0-7 0xf089 0xf090 low limit registers 0-7 lolim0-7 adllmt0-7 adc_lolim0-7 adc_adllmt0-7 adc_adllmt0-7 0xf091 0xf098 high limit registers 0-7 hilim0-7 adhlmt0-7 adc_hilim0-7 adc_adhlmt0-7 adc_adhlmt0-7 0xf099 0xf0a0 offset registers 0-7 offst0-7 adofs0-7 adc_offst0-7 adc_adofs0-7 adc_adofs0-7 0xf0a1 0xf0a8 power control register pwr adpower adc_pwr adc_adpower adc_adpower 0xf0a9 voltage reference register cal adcal adc_vref adc_adcal adc_cal 0xf0aa cop control register ctrl copctl cop_ctrl copctl copctl 0xf0e0 time-out register tout copto cop_tout copto copto 0xf0e1 counter register cntr copctr cop_cntr copctr copctr 0xf0e2 i 2 c address register addr ibad i2c_addr i2c_ibad ibad 0xf0d0 frequency divider register fdiv ibfd i2c_fdiv i2c_ibfd ibfd 0xf0d1 control register ctrl ibcr i2c_ctrl i2c_ibcr ibcr 0xf0d2 status register stat ibsr i2c_stat i2c_ibsr ibsr 0xf0d3 data i./o register data ibdr i2c_data i2c_ibdr ibdr 0xf0d4 noise filter register nfilt ibnr i2c_nfilt i2c_ibnr ibnr 0xf0d5
how to reach us: home page: www.freescale.com e-mail: support@freescale.com usa/europe or locations not listed: freescale semiconductor technical information center, ch370 1300 n. alma school road chandler, arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com europe, middle east, and africa: freescale halbleiter deutschland gmbh technical information center schatzbogen 7 81829 muenchen, germany +44 1296 380 456 (english) +46 8 52200080 (english) +49 89 92103 559 (german) +33 1 69 35 48 48 (french) support@freescale.com japan: freescale semiconductor japan ltd. headquarters arco tower 15f 1-8-1, shimo-meguro, meguro-ku, tokyo 153-0064, japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com asia/pacific: freescale semiconductor hong kong ltd. technical information center 2 dai king street tai po industrial estate tai po, n.t., hong kong +800 2666 8080 support.asia@freescale.com for literature requests only: freescale semiconductor literature distribution center p.o. box 5405 denver, colorado 80217 1-800-441-2447 or 303-675-2140 fax: 303-675-2150 ldcforfreescalesemiconductor@hibbertgroup.com freescale? and the freescale logo are trademarks of freescale semiconductor, inc. all other product or service names are the property of their respective owners. this product incorporates superflash? technology licensed from sst. ? freescale semiconductor, inc. 2005, 2006. all rights reserved. mc56f8013 rev. 10 01/2007 information in this document is provided solely to enable system and software implementers to use freescale semiconductor products. there are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. freescale semiconductor reserves the right to make changes without further notice to any products herein. freescale semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does freescale semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. ?typical? parameters that may be provided in freescale semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. all operating parameters, including ?typicals?, must be validated for each customer application by customer?s technical ex perts. freescale semiconductor does not convey any license under its patent rights nor the rights of others. freescale semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the freescale semiconductor product could create a situation where personal injury or death may occur. should buyer purchase or use freescale semiconductor products for any such unintended or unauthorized application, buyer shall indemnify and hold freescale semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that freescale semiconductor was negligent regarding the design or manufacture of the part. rohs-compliant and/or pb-free versions of freescale products have the functionality and electrical characteristics of their non-rohs-compliant and/or non-pb-free counterparts. for further information, see http://www.freescale.com or contact your freescale sales representative. for information on freescale?s environmental products program, go to http://www.freescale.com/epp .


▲Up To Search▲   

 
Price & Availability of 56F801307

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X